aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-02-02 11:26:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-02-02 11:26:26 -0300
commit1f355d2d2b824a6b3bad00b9790c8230127bb6c9 (patch)
tree10f7922f73abe76cdf9e4530b67d6d310f406cb3
parent40bbd9cad0877b34b36d6b9dd79dc2a5ef55125e (diff)
downloadpuppet-nodo-1f355d2d2b824a6b3bad00b9790c8230127bb6c9.tar.gz
puppet-nodo-1f355d2d2b824a6b3bad00b9790c8230127bb6c9.tar.bz2
Feat: adds nodo::subsystem:apparmor
-rw-r--r--files/etc/apparmor.d/tunables/home.d/site.local14
-rw-r--r--manifests/subsystem/apparmor.pp11
2 files changed, 25 insertions, 0 deletions
diff --git a/files/etc/apparmor.d/tunables/home.d/site.local b/files/etc/apparmor.d/tunables/home.d/site.local
new file mode 100644
index 0000000..3bfbbb9
--- /dev/null
+++ b/files/etc/apparmor.d/tunables/home.d/site.local
@@ -0,0 +1,14 @@
+# ------------------------------------------------------------------
+#
+# Copyright (C) 2010 Canonical Ltd.
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of version 2 of the GNU General Public
+# License published by the Free Software Foundation.
+#
+# ------------------------------------------------------------------
+
+# The following is a space-separated list of where additional user home
+# directories are stored, each must have a trailing '/'. Directories added
+# here are appended to @{HOMEDIRS}. See tunables/home for details. Eg:
+#@{HOMEDIRS}+=/srv/nfs/home/ /mnt/home/
+@{HOMEDIRS}+=/mnt/crypt/home
diff --git a/manifests/subsystem/apparmor.pp b/manifests/subsystem/apparmor.pp
new file mode 100644
index 0000000..04de839
--- /dev/null
+++ b/manifests/subsystem/apparmor.pp
@@ -0,0 +1,11 @@
+class nodo::subsystem::apparmor {
+ include nodo::utils::security::apparmor
+
+ file { '/etc/apparmor.d/tunables/home.d/site.local':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0644',
+ source => 'puppet:///modules/nodo/etc/apparmor.d/tunables/home.d/site.local',
+ }
+}