Systemd-homedwork.service is not included to Fedora Silverblue 41?

Hi.

Today I decided to check the progress of systemd-homed in the new - 41 - release of Silverblue. Sadly, it does not work possibly due to missing systemd-homework.service unit.

systemctl status systemd-homed.service gives this:

Nov 12 14:37:30 fedora systemd[1]: Starting systemd-homed.service - Home Area Manager...
Nov 12 14:37:30 fedora systemd-homed[952]: Successfully loaded private key pair.
Nov 12 14:37:30 fedora systemd-homed[952]: Watching /home.
Nov 12 14:37:30 fedora systemd-homed[952]: Failed to open /var/cache/systemd/home/: Permission denied
Nov 12 14:37:30 fedora systemd[1]: Started systemd-homed.service - Home Area Manager.

Logs give this:

Failed to open /var/cache/systemd/home/: Permission denied`

and this:

AVC avc:  denied  { read } for  pid=952 comm="systemd-homed" name="home" dev="vda3" ino=90699 scontext=system_u:system_r:systemd_homed_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=dir permissive=0

Trying analyze systemd-homework.service I get following:

sudo systemd-analyze verify systemd-homework.service
Unit systemd-homework.service not found.

Previously the systemd-homework.service was required by systemd-homed.service - is it a bug or some restructuring was do to systemd-homed?

As a result, homectl is unable creating homed-managed users.

Regards
ArtūrasB.

EDIT: I confused unit name that’s why it couldn’t be found. But restorecon was needed anyway.

1 Like

References:

1 Like

Added security

OK, this fixed the issue:

sudo restorecon -rv /var/cache/systemd/home/

I wonder why /var/cache/systemd/home/ is not labeled properly. There were issues with other directories before homed-related SELinux policies were introduced and never with /var/cache/systemd/home/.

Could anyone advise me on where to report this situation as an issue, please ?

It’s systemd-homework, not systemd-homedwork.

/var/cache/systemd/home/ is one of the new blob directories introduced in systemd v256
More information is available here User Record Blob Directories
Selinux policy for blob directories addition here Fix systemd-homed blobs directory permissions

1 Like

Thanks, corrected.