mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
self: Install AppArmor profile.
* guix/self.scm (apparmor-tunables): New procedure.
(miscellaneous-files): Add etc/apparmor.d/{guix,guix-daemon,tunables/guix}.
Change-Id: I8952ef4097924d62432775cc39d38098785fdcdf
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
This commit is contained in:
parent
60782c20d4
commit
51a1475599
1 changed files with 13 additions and 0 deletions
|
|
@ -695,6 +695,13 @@ DAEMON and to the current configuration variables."
|
|||
"etc/guix-daemon.cil.in"
|
||||
"guix-daemon.cil"))
|
||||
|
||||
(define (apparmor-tunables source daemon)
|
||||
"Return the AppArmor tunables file used by the guix and guix-daemon AppArmor
|
||||
profiles with its variables set."
|
||||
(parameterized-file source daemon
|
||||
"etc/apparmor.d/tunables/guix.in"
|
||||
"apparmor-guix-tunables"))
|
||||
|
||||
(define (systemd-file source daemon file)
|
||||
"Return the given systemd file from SOURCE parameterized for DAEMON."
|
||||
(parameterized-file source daemon
|
||||
|
|
@ -708,6 +715,12 @@ DAEMON and to the current configuration variables."
|
|||
,(file-append* source "/etc/completion/bash/guix"))
|
||||
("etc/bash_completion.d/guix-daemon"
|
||||
,(file-append* source "/etc/completion/bash/guix-daemon"))
|
||||
("etc/apparmor.d/guix"
|
||||
,(file-append* source "/etc/apparmor.d/guix"))
|
||||
("etc/apparmor.d/guix-daemon"
|
||||
,(file-append* source "/etc/apparmor.d/guix-daemon"))
|
||||
("etc/apparmor.d/tunables/guix"
|
||||
,(apparmor-tunables source daemon))
|
||||
("share/zsh/site-functions/_guix"
|
||||
,(file-append* source "/etc/completion/zsh/_guix"))
|
||||
("share/fish/vendor_completions.d/guix.fish"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue