summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRutherther <rutherther@ditigal.xyz>2025-11-29 17:58:54 +0100
committerLudovic Courtès <ludo@gnu.org>2025-12-05 14:54:39 +0100
commitbd2edc9e435402b48fd201b56ab486151512717a (patch)
tree0b3a68cc1119150cb57909fdf4ac3f9edcaac916 /etc
parentf29cd8868e9e704e87a2b73e6770d4055f99341c (diff)
etc: Update SELinux rule file to support unprivileged daemon.
Fixes: #3576. * etc/guix-daemon.cil.in: Add rules for unprivileged daemon. Change-Id: Ic0c561036230d397f7071daef33ca8181684d014 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/guix-daemon.cil.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/guix-daemon.cil.in b/etc/guix-daemon.cil.in
index b221e310942..e79236571bd 100644
--- a/etc/guix-daemon.cil.in
+++ b/etc/guix-daemon.cil.in
@@ -185,6 +185,9 @@
185 (allow guix_daemon_t 185 (allow guix_daemon_t
186 root_t 186 root_t
187 (dir (mounton))) 187 (dir (mounton)))
188 (allow init_t
189 guix_daemon.guix_store_content_t
190 (dir (mounton)))
188 (allow guix_daemon_t 191 (allow guix_daemon_t
189 fs_t 192 fs_t
190 (filesystem (getattr))) 193 (filesystem (getattr)))
@@ -361,6 +364,14 @@
361 self 364 self
362 (netlink_route_socket (bind create getattr nlmsg_read read write getopt))) 365 (netlink_route_socket (bind create getattr nlmsg_read read write getopt)))
363 366
367 ;; Allow use of user namespaces
368 (allow guix_daemon_t
369 self
370 (cap_userns (sys_admin net_admin sys_chroot)))
371 (allow guix_daemon_t
372 self
373 (user_namespace (create)))
374
364 ;; Socket operations 375 ;; Socket operations
365 (allow guix_daemon_t 376 (allow guix_daemon_t
366 guix_daemon_socket_t 377 guix_daemon_socket_t