Session
Session management module for the daemon.
- MACHINE_ID_PATH: Path = PosixPath('/etc/machine-id')
Path to the machine ID file
- class UserSessionManager[source]
Manage user session information.
Initialize the session manager.
- get_user_id(effective_user_id)[source]
Get the user ID based on the effective user ID.
- property machine_id: UUID
Property that holds the machine UUID.
- Raises:
FileNotFoundError – If the machine-id file doesn’t exist
ValueError – If the machine-id file is empty or malformed
- Returns:
The UUID generated from machine-id
- Return type: