Skip to content

systemd: fixes for systemd-user-runtime-dir#1075

Merged
pebenito merged 1 commit into
SELinuxProject:mainfrom
yizhao1:systemd
Jan 30, 2026
Merged

systemd: fixes for systemd-user-runtime-dir#1075
pebenito merged 1 commit into
SELinuxProject:mainfrom
yizhao1:systemd

Conversation

@yizhao1

@yizhao1 yizhao1 commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Allow systemd-user-runtime-dir to connect to
/run/systemd/userdb/io.systemd.Multiplexer and read /etc/machine-id.

Fixes:
avc: denied { write } for pid=426 comm="systemd-user-ru" name="io.systemd.Multiplexer" dev="tmpfs" ino=63 scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:object_r:systemd_userdbd_runtime_t tclass=sock_file permissive=1

avc: denied { connectto } for pid=426 comm="systemd-user-ru" path="/run/systemd/userdb/io.systemd.Multiplexer" scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:system_r:systemd_userdbd_t tclass=unix_stream_socket permissive=1

avc: denied { read } for pid=426 comm="systemd-user-ru" name="machine-id" dev="vda" ino=118 scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:object_r:etc_runtime_t tclass=file permissive=1

avc: denied { open } for pid=426 comm="systemd-user-ru" path="/etc/machine-id" dev="vda" ino=118 scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:object_r:etc_runtime_t tclass=file permissive=1

Allow systemd-user-runtime-dir to connect to
/run/systemd/userdb/io.systemd.Multiplexer and read /etc/machine-id.

Fixes:
avc: denied { write } for pid=426 comm="systemd-user-ru" name="io.systemd.Multiplexer"
dev="tmpfs" ino=63 scontext=system_u:system_r:systemd_user_runtime_dir_t
tcontext=system_u:object_r:systemd_userdbd_runtime_t tclass=sock_file permissive=1

avc: denied { connectto } for pid=426 comm="systemd-user-ru" path="/run/systemd/userdb/io.systemd.Multiplexer"
scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:system_r:systemd_userdbd_t
tclass=unix_stream_socket permissive=1

avc: denied { read } for pid=426 comm="systemd-user-ru" name="machine-id" dev="vda" ino=118
scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:object_r:etc_runtime_t tclass=file permissive=1

avc: denied { open } for pid=426 comm="systemd-user-ru" path="/etc/machine-id" dev="vda" ino=118
scontext=system_u:system_r:systemd_user_runtime_dir_t tcontext=system_u:object_r:etc_runtime_t tclass=file permissive=1

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
@pebenito pebenito merged commit ba5c913 into SELinuxProject:main Jan 30, 2026
118 checks passed
@yizhao1 yizhao1 deleted the systemd branch January 31, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants