Skip to content

Commit 0bd20bc

Browse files
committed
Allow fapolicyd to connect to systemd-machined
When systemd-machined.service is running and nsswitch.conf is set with somwething like "passwd: files systemd" users are resolved using machined socket Fixes: type=PROCTITLE msg=audit(08/13/2025 15:12:27.178:75968) : proctitle=/usr/sbin/fapolicyd --debug-deny type=PATH msg=audit(08/13/2025 15:12:27.178:75968) : item=0 name=/run/systemd/userdb/io.systemd.Machine inode=2080 dev=00:1b mode=socket,666 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:systemd_userdbd_runtime_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(08/13/2025 15:12:27.178:75968) : cwd=/ type=SOCKADDR msg=audit(08/13/2025 15:12:27.178:75968) : saddr={ saddr_fam=local path=/run/systemd/userdb/io.systemd.Machine } type=SYSCALL msg=audit(08/13/2025 15:12:27.178:75968) : arch=x86_64 syscall=connect success=no exit=EACCES(Permission denied) a0=0x5 a1=0x7ffdc623d340 a2=0x29 a3=0x0 items=1 ppid=1 pid=1041526 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=fapolicyd exe=/usr/bin/fapolicyd subj=system_u:system_r:fapolicyd_t:s0 key=(null) type=AVC msg=audit(08/13/2025 15:12:27.178:75968) : avc: denied { connectto } for pid=1041526 comm=fapolicyd path=/run/systemd/userdb/io.systemd.Machine scontext=system_u:system_r:fapolicyd_t:s0 tcontext=system_u:system_r:systemd_machined_t:s0 tclass=unix_stream_socket permissive=0
1 parent edaf0c5 commit 0bd20bc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

fapolicyd.te

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,9 @@ ifdef(`systemd_homed_stream_connect',`
106106
systemd_homed_stream_connect(fapolicyd_t)
107107
')
108108
')
109+
110+
ifdef(`systemd_machined_stream_connect',`
111+
optional_policy(`
112+
systemd_machined_stream_connect(fapolicyd_t)
113+
')
114+
')

0 commit comments

Comments
 (0)