diff options
| author | NoƩ Lopez <noelopez@free.fr> | 2025-12-08 16:39:11 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2025-12-22 22:48:57 +0100 |
| commit | 587fd2dad49d8af3f31d06e29ff43c986d6f35c4 (patch) | |
| tree | 83caa58ed08acc6dae900f219d4c7bcfb5927cc7 /configure.ac | |
| parent | 9a78e760762c1d93369e765bdce12388e1662ec6 (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.ac | 10 |
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/']) |
| 82 | AC_SUBST([selinux_policydir]) | 82 | AC_SUBST([selinux_policydir]) |
| 83 | 83 | ||
| 84 | AC_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']) | ||
| 89 | AC_SUBST([apparmor_profiledir]) | ||
| 90 | apparmor_profile_tunablesdir='${apparmor_profiledir}/tunables' | ||
| 91 | AC_SUBST([apparmor_profile_tunablesdir]) | ||
| 92 | |||
| 84 | dnl Better be verbose. | 93 | dnl Better be verbose. |
| 85 | AC_MSG_CHECKING([for the store directory]) | 94 | AC_MSG_CHECKING([for the store directory]) |
| 86 | AC_MSG_RESULT([$storedir]) | 95 | AC_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 | ||
| 313 | AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm]) | 323 | AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm]) |
