]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: add 'SmackFileSystemRoot=*' option into tmp.mount 1664/head
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 21 Oct 2015 12:48:13 +0000 (21:48 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Sat, 24 Oct 2015 11:54:21 +0000 (20:54 +0900)
If SMACK is enabled, 'smackfsroot=*' option should be specified when
/tmp is mounted since many non-root processes use /tmp for temporary
usage. If not, /tmp is labeled as '_' and smack denial occurs when
writing.

In order to do that, 'SmackFileSystemRoot=*' is newly added into
tmp.mount.

Makefile.am
units/tmp.mount.m4 [moved from units/tmp.mount with 92% similarity]

index fa25485b7363b8b62aa5886022da60c48040ab16..89eaf805753c5d410bdef346ef790e179da2bae4 100644 (file)
@@ -616,7 +616,8 @@ EXTRA_DIST += \
        units/initrd-udevadm-cleanup-db.service.in \
        units/initrd-switch-root.service.in \
        units/systemd-nspawn@.service.in \
-       units/systemd-update-done.service.in
+       units/systemd-update-done.service.in \
+    units/tmp.mount.m4
 
 if HAVE_SYSV_COMPAT
 nodist_systemunit_DATA += \
similarity index 92%
rename from units/tmp.mount
rename to units/tmp.mount.m4
index 00a0d28722449038f17e6aa66cb6c70def0cf9f8..e1e26bdfc0d93edd6b8c455e9ce7cf890cc48047 100644 (file)
@@ -19,3 +19,6 @@ What=tmpfs
 Where=/tmp
 Type=tmpfs
 Options=mode=1777,strictatime
+m4_ifdef(`HAVE_SMACK',
+SmackFileSystemRoot=*
+)m4_dnl