User

D-Bus interfaces that defines and powers our commands.

class UserInterface(implementation)[source]

The DBus interface of a query.

Constructor of the class

Parameters:

implementation (DaemonContext) – The implementation context to be used in an interface.

GetUserId(effective_user_id)[source]

Get the user ID for the given effective user ID.

Return type:

str

Parameters:

effective_user_id (Int) – The effective user id coming from user space

Returns:

The identifier of the user session.

Return type:

Str

_abc_impl = <_abc._abc_data object>
_verify_caller_authorization(sender, requested_user_id)[source]

Verify that the caller is authorized to access the requested user’s data.

Return type:

None

Parameters:
  • sender – The D-Bus sender.

  • requested_user_id (int) – The Unix user ID being requested in the method call.

Raises:

PermissionError – If the caller’s Unix user ID doesn’t match the requested user ID.