-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-homed: various fixups #839
base: main
Are you sure you want to change the base?
Commits on Nov 28, 2024
-
systemd_stream_connect_homed: new interface to access account info
systemd-homed provides a varlink API with a unix socket at /run/systemd/userdb/io.systemd.Home to query user account records. As quite a few things will need to be able to query this API for basic functionality to work - such as `groups(1)` being able to operate on systemd-homed user accounts - let's make an interface for this. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c90195b - Browse repository at this point
Copy the full SHA c90195bView commit details -
locallogin: allow talking to systemd-homed user record APIs
systemd-homed user records rely on being able to talk to the dbus and varlink APIs provided to obtain basic account information such as user id, name, group membership, etc as they do not have /etc/passwd, /etc/group or /etc/shadow fields. For tty login to work for homed user accounts, local_login_t needs to be able to lookup this information, so let's grant it the ability to. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b129ea - Browse repository at this point
Copy the full SHA 0b129eaView commit details -
systemd_homed_t, systemd_homework_t: allow reading of /etc/machine-id
systemd-homed user records stored in identity files are machine-id specific and signed, so systemd-homed needs access to /etc/machine-id to create those records properly. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ee5070 - Browse repository at this point
Copy the full SHA 8ee5070View commit details -
systemd-homed: label LUKS home images as systemd_homed_storage_t
systemd-homed stores LUKS home images as `/home/username.home`, so let's label that appropriately. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a6334a - Browse repository at this point
Copy the full SHA 5a6334aView commit details -
For commands such as `groups(1)` to work, nsswitch_domain needs to be able to talk to /run/systemd/userdb/io.systemd.Home to obtain information on systemd-homed users. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5b382a4 - Browse repository at this point
Copy the full SHA 5b382a4View commit details -
systemd_homed_runtime_work_dir_t: new type for systemd-homed workdir
As systemd-homed's workdir is an internal one, and external domains may be (reasonably) expected to connect to systemd_homed_runtime_t in the future, let's create a new domain for systemd-homed's internal work to differentiate between the two. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1babb9 - Browse repository at this point
Copy the full SHA b1babb9View commit details -
lvm_manage_runtime_dirs: new interface for managing LVM runtime dirs
Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a74dd7b - Browse repository at this point
Copy the full SHA a74dd7bView commit details -
systemd_homework_t: allow managing of lvm_runtime_t files and dirs
systemd-homed needs access to `/run/cryptsetup` to properly setup and unlock LUKS encrypted home directories. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76febf5 - Browse repository at this point
Copy the full SHA 76febf5View commit details -
systemd_homed_record_t: new type for user records
As systemd identity files contain sensitive data, such as password hashes, let's create a new type systemd_homed_record_t for them. As systemd_homework_t needs to be able to read, create, and delete these files, let's give it permissions to do so. Signed-off-by: Rahul Sandhu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cfeefc0 - Browse repository at this point
Copy the full SHA cfeefc0View commit details