summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNoƩ Lopez <noelopez@free.fr>2025-12-08 16:39:11 +0100
committerRutherther <rutherther@ditigal.xyz>2025-12-22 22:48:57 +0100
commit587fd2dad49d8af3f31d06e29ff43c986d6f35c4 (patch)
tree83caa58ed08acc6dae900f219d4c7bcfb5927cc7 /configure.ac
parent9a78e760762c1d93369e765bdce12388e1662ec6 (diff)
etc: Add AppArmor profile for the daemon.
* .gitignore: Add etc/apparmor.d/tunables/guix. * Makefile.am (nodist_apparmor_profile_DATA) (nodist_apparmor_profile_tunables_DATA): Define it. * configure.ac: Generate etc/apparmor.d/tunables/guix. Add --with-apparmor-profile-dir option. * etc/apparmor.d/guix-daemon: New file. * etc/apparmor.d/tunables/guix.in: New file. * doc/guix.texi: Document AppArmor profiles. * gnu/packages/package-management.scm (guix): Add future changes commented. Change-Id: Iac7df9d642383cc46a2d450c3badef31199ab041 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 82f12507745..6ad8e427736 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,6 +81,15 @@ AC_ARG_WITH([selinux-policy-dir],
81 [selinux_policydir='${datadir}/selinux/']) 81 [selinux_policydir='${datadir}/selinux/'])
82AC_SUBST([selinux_policydir]) 82AC_SUBST([selinux_policydir])
83 83
84AC_ARG_WITH([apparmor-profile-dir],
85 AS_HELP_STRING([--with-apparmor-profile-dir=DIR],
86 [name of the AppArmor profile directory]),
87 [apparmor_profiledir="$withval"],
88 [apparmor_profiledir='${sysconfdir}/apparmor.d'])
89AC_SUBST([apparmor_profiledir])
90apparmor_profile_tunablesdir='${apparmor_profiledir}/tunables'
91AC_SUBST([apparmor_profile_tunablesdir])
92
84dnl Better be verbose. 93dnl Better be verbose.
85AC_MSG_CHECKING([for the store directory]) 94AC_MSG_CHECKING([for the store directory])
86AC_MSG_RESULT([$storedir]) 95AC_MSG_RESULT([$storedir])
@@ -308,6 +317,7 @@ AC_CONFIG_FILES([Makefile
308 po/guix/Makefile.in 317 po/guix/Makefile.in
309 po/packages/Makefile.in 318 po/packages/Makefile.in
310 etc/guix-daemon.cil 319 etc/guix-daemon.cil
320 etc/apparmor.d/tunables/guix
311 guix/config.scm]) 321 guix/config.scm])
312 322
313AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm]) 323AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm])