Systemd-homed user not working with KDE

Hi,

I’m trying to implement a systemd-homed user in my desktop. It worked for GNOME, but it did’t for KDE Plasma. I’m using Fedora 41.

I can’t pass the login screen.

Steps:

sudo authselect enable-feature with-systemd-homed
sudo homectl create test --real-name "Test User"
log out & log in as <test> user

Log:

unix_chkpwd:  check pass; user unknown
unix_chkpwd:  password check failed for user (test)
sddm: Authentication error: SDDM::Auth::ERROR_AUTHENTICATION "Password incorrect or not sufficient for authentication of user test."

I can confirm that the password is correct.
Is there any additional configuration needed?

Does typing in

sudo homectl list 

show your new user?

The problem was with SELinux.
When the user’s directory for LUKS is mounted, it is unlabelled. The way around was to enable root user to log in, and activate the systemd-homed user and run restorecon.

Further investigating is necessary.

The selinux policy for systemd-homed includes unlabeled_t for the home directory to act normally. That’s why it works in GDM.

I would have to dig in deeper to see why it fails with the unlabeled_t label. I don’t know if it’s related to the other sddm login issues, even though It worked previously before 41.