Open alexpattyn opened 2 years ago
Looks like https://github.com/fedora-selinux/selinux-policy/pull/939 is working on this issue. And I assume doing a better job making proper policies than just accepting whatever SELinux trouble shooter gave me.
Looks like this may be a little more complicated.
Trying enabling homed on another system, but this time with --storage=luks. Went through all the selinux troubleshooter prompts but if I leave SELINUX=enforcing I can't login. However, if I set it to permissive mode I can login.
Will take a look at if this has to do with enabling encryption or what.
Should note I modified PAM the same way for both systems. Only difference seems to be LUKS, so it may have to do with issues mounting the loop back file.
Did you have any luck with this? I was wanting to try out systemd-homed on Silverblue.
Should note I modified PAM the same way for both systems. Only difference seems to be LUKS, so it may have to do with issues mounting the loop back file.
Hi. Have you found anything regarding this LUKS-related case ? I have same issue - with SELinux in the enforcing mode I'm unable to login to my homed-managed user on LUKS storage (file). All works if SELinux is set to permissive.
You luks problem seems to come from your custom selinux policy. In my custom policy, everything I have tried just works, this includes Silverblue and Kinoite.
You luks problem seems to come from your custom selinux policy. In my custom policy, everything I have tried just works, this includes Silverblue and Kinoite.
Maybe I should try your custom policy with regular Fedora Workstation.
FWIW @richiedaze's custom policy seems to work fine on Fedora Workstation for me.
FWIW @richiedaze's custom policy seems to work fine on Fedora Workstation for me.
Same here, it is working on FW37 with SELinux in the enforced mode.
As an update authselect was updated to enable homed.
So authselect won't cause any issues, but I am still getting issues from SELinux. Now what is the best possible way to upstream @richiedaze changes and get them reviewed?
Looks like a few people are moving forward with homed on Fedora:
It doesn't seem like an ideal solution for silverblue however, since it would require layering various selinux packages to build the homed.pp profile.
See: https://bugzilla.redhat.com/show_bug.cgi?id=2036108
SELinux blocks homed and related programs from working properly. I.e. Setting up the
$USER.home
directory, etc.Based on using the SELinux trouble shooter the following programs need updated polices:
I have the .pp and .te files having gone through this and can prepare a PR. I can confirm that I am not having issues logging in as existing homed users or making new ones even with SELinux back in enforcing mode.