SELinux prevents login with systemd_homed user

Hey there,

i recently installed openSUSE Tumbleweed with SELinux and created a user using systemd_homed.

Trying to login with this user (sddm → kde plasma) does not work; after entering the correct password, there is a couple seconds of black screen and then it returns to sddm.

ausearch -m avc -ts today | audit2allow -w -a returns the following avc when trying to login with the homed user:

type=AVC msg=audit(1791114626.544:102): avc:  denied  { getattr } for  pid=1870 comm="(fsck)" name="/" dev="pidfs" ino=1 scontext=system_u:system_r:systemd_homework_t:s0 tcontext=system_u:object_r:pidfs_t:s0 tclass=filesystem permissive=0

        Was caused by:
                Missing type enforcement (TE) allow rule.

                You can use audit2allow to generate a loadable module to allow this access.

homectl inspect [username] returns:

  User name: [nope]
       State: active
 Disposition: regular
 Last Change: [nope]
 Last Passw.: [nope]
    Login OK: yes
    Login OK: yes
 Password OK: yes
         UID: 1000
         GID: 1000 ([nope])
 Aux. Groups: kvm
              libvirt
              qemu
              users
              [nope]
   Real Name: [nope]
   Directory: /home/[nope]
   Blob Dir.: /var/cache/systemd/home/[nope]
     Storage: luks (strong encryption)
  Image Path: /home/[nope].home
   Removable: no
       Shell: /bin/bash
 Access Mode: 0701
LUKS Discard: online=no offline=yes
   LUKS UUID: [nope]
   Part UUID: [nope]
     FS UUID: [nope]
 File System: btrfs
 LUKS Cipher: aes
 Cipher Mode: xts-plain64
  Volume Key: 256bit
 Mount Flags: nosuid nodev exec
   Disk Size: 1.5T
  Disk Usage: 429.8G (= 27.8%)
   Disk Free: 1T (= 72.2%)
  Disk Floor: 429.8G
Disk Ceiling: 1.7T
  Good Auth.: 24
   Last Good: Sun 2026-10-04 14:32:39 CEST
   Bad Auth.: 7
    Last Bad: Sun 2026-10-04 14:29:24 CEST
    Next Try: anytime
 Auth. Limit: 30 attempts per 1min
   Rebalance: off
   Passwords: 1
  Local Sig.: yes
     Service: io.systemd.Home
 Self Modify: realName
              emailAddress
              iconName
              location
              shell
              umask
              environment
              timeZone
              preferredLanguage
              additionalLanguages
              preferredSessionLauncher
              preferredSessionType
              defaultArea
              pkcs11TokenUri
              fido2HmacCredential
              recoveryKeyType
              lastChangeUSec
              lastPasswordChangeUSec
      (Blobs) avatar
              login-background
 (Privileged) passwordHint
              hashedPassword
              pkcs11EncryptedKey
              fido2HmacSalt
              recoveryKey
              sshAuthorizedKeys

Setting selinux to permissive allows me to login and setting to enforcing afterwards works flawlessly.

Where do i go from here? Is this a policy problem i need to report somewhere? Am i overlooking something?

Quick note at the end: i am new here, if there is anything wrong with this topic, please dont hesitate to give feedback. this is also my first system with selinux, so i have no idea, what im doing.

Report it as a bug on https://bugzilla.opensuse.org

The policy module need something like;

allow systemd_homework_t pidfs_t:filesystem getattr;

In https://github.com/openSUSE/selinux-policy/blob/factory/policy/modules/system/systemd-homed.te

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.