summaryrefslogtreecommitdiff
path: root/etc/guix-daemon.cil.in
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-05-22 19:42:15 +0200
committerMarius Bakke <marius@gnu.org>2021-05-22 19:53:17 +0200
commit35bd94a49257bbadcb3ca25342e5c1ec33f438f0 (patch)
tree75bb7dbec162caf88a40b4af6c8fb619e765f3b1 /etc/guix-daemon.cil.in
parent080770e6547132650b72711a9e1b0ce50ca4ff74 (diff)
etc: Add more SELinux permissions for the daemon.
* etc/guix-daemon.cil.in (guix_daemon): Add more permissions, necessary for garbage collection.
Diffstat (limited to 'etc/guix-daemon.cil.in')
-rw-r--r--etc/guix-daemon.cil.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/guix-daemon.cil.in b/etc/guix-daemon.cil.in
index 4f521573549..c9f4e3186d7 100644
--- a/etc/guix-daemon.cil.in
+++ b/etc/guix-daemon.cil.in
@@ -301,7 +301,7 @@
301 open read write))) 301 open read write)))
302 (allow guix_daemon_t 302 (allow guix_daemon_t
303 guix_daemon_conf_t 303 guix_daemon_conf_t
304 (lnk_file (create getattr rename unlink))) 304 (lnk_file (create getattr rename unlink read)))
305 (allow guix_daemon_t net_conf_t 305 (allow guix_daemon_t net_conf_t
306 (file (getattr open read))) 306 (file (getattr open read)))
307 (allow guix_daemon_t net_conf_t 307 (allow guix_daemon_t net_conf_t
@@ -328,6 +328,9 @@
328 (allow guix_daemon_t 328 (allow guix_daemon_t
329 cache_home_t 329 cache_home_t
330 (dir (search))) 330 (dir (search)))
331 (allow guix_daemon_t
332 cache_home_t
333 (lnk_file (getattr read)))
331 334
332 ;; self upgrades 335 ;; self upgrades
333 (allow guix_daemon_t 336 (allow guix_daemon_t
@@ -340,7 +343,7 @@
340 ;; Socket operations 343 ;; Socket operations
341 (allow guix_daemon_t 344 (allow guix_daemon_t
342 guix_daemon_socket_t 345 guix_daemon_socket_t
343 (sock_file (unlink))) 346 (sock_file (unlink write)))
344 (allow guix_daemon_t 347 (allow guix_daemon_t
345 init_t 348 init_t
346 (fd (use))) 349 (fd (use)))