Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd: allow systemd-networkd and sytemd-resolved to write to syste… #722

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

yizhao1
Copy link
Contributor

@yizhao1 yizhao1 commented Oct 7, 2023

…md-notify socket

Fixes:
avc: denied { write } for pid=277 comm="systemd-resolve" name="notify" dev="tmpfs" ino=31
scontext=system_u:system_r:systemd_resolved_t
tcontext=system_u:object_r:systemd_runtime_notify_t tclass=sock_file permissive=1

avc: denied { write } for pid=324 comm="systemd-network" name="notify" dev="tmpfs" ino=31
scontext=system_u:system_r:systemd_networkd_t
tcontext=system_u:object_r:systemd_runtime_notify_t tclass=sock_file permissive=1

@0xC0ncord
Copy link
Contributor

Since systemd-networkd and systemd-resolved are daemons, shouldn't we change them from init_system_domain() to init_daemon_domain()? This would also fix the issue.

@yizhao1
Copy link
Contributor Author

yizhao1 commented Oct 7, 2023

Since systemd-networkd and systemd-resolved are daemons, shouldn't we change them from init_system_domain() to init_daemon_domain()? This would also fix the issue.

Thanks. It's a better solution.

…temd-networkd and systemd-resolved

Systemd-networkd and systemd-resolved are daemons.

Fixes:
avc:  denied  { write } for  pid=277 comm="systemd-resolve"
name="notify" dev="tmpfs" ino=31
scontext=system_u:system_r:systemd_resolved_t
tcontext=system_u:object_r:systemd_runtime_notify_t tclass=sock_file
permissive=1

avc:  denied  { write } for  pid=324 comm="systemd-network"
name="notify" dev="tmpfs" ino=31
scontext=system_u:system_r:systemd_networkd_t
tcontext=system_u:object_r:systemd_runtime_notify_t tclass=sock_file
permissive=1

Signed-off-by: Yi Zhao <[email protected]>
@pebenito pebenito merged commit 5213c51 into SELinuxProject:main Oct 9, 2023
@yizhao1 yizhao1 deleted the systemd branch October 10, 2023 05:45
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.

3 participants