Set the SMACK security label to run given executable file in systemd services 40/80840/1 accepted/tizen/common/20160721.175837 accepted/tizen/ivi/20160721.090757 accepted/tizen/mobile/20160721.090506 accepted/tizen/tv/20160721.091324 accepted/tizen/wearable/20160721.091036 submit/tizen/20160721.003054
authorjooseong lee <jooseong.lee@samsung.com>
Wed, 20 Jul 2016 11:05:16 +0000 (20:05 +0900)
committerjooseong lee <jooseong.lee@samsung.com>
Wed, 20 Jul 2016 11:05:16 +0000 (20:05 +0900)
Change-Id: I4ed51c4f9a533caf87094b22d917316f83730ccc
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
units/resize2fs@.service
units/tizen-fstrim-user.service
units/tizen-system-env.service
units/umount-opt.service

index 8802a59..6bdd9b6 100644 (file)
@@ -8,6 +8,7 @@ Before=shutdown.target
 
 [Service]
 Type=oneshot
+SmackProcessLabel=System
 ExecStart=/sbin/resize2fs -f %f
 ExecStartPost=/bin/ln -s /dev/null /etc/systemd/system/resize2fs@%i.service
 StandardOutput=journal+console
index 524086d..33cea57 100644 (file)
@@ -4,6 +4,7 @@ Requires=opt.mount
 
 [Service]
 Type=oneshot
+SmackProcessLabel=System
 ExecStart=/usr/bin/tizen-fstrim-on-charge.sh /opt
 StandardOutput=journal
 StandardError=inherit
index 3130b8c..fac769e 100644 (file)
@@ -5,6 +5,7 @@ Before=basic.target
 
 [Service]
 Type=oneshot
+SmackProcessLabel=System
 ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME|XDG_RUNTIME_DIR)=" > /run/tizen-system-env'
 ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -e "XDG_RUNTIME_DIR=" > /run/xdg-root-env'
 
index dcf6c13..9402151 100644 (file)
@@ -8,4 +8,5 @@ Requires=local-fs-pre.target
 [Service]
 Type=oneshot
 RemainAfterExit=yes
+SmackProcessLabel=System
 ExecStart=/bin/umount -l /opt