'User::Shell' is a new domain for only shell process.
* https://review.tizen.org/gerrit/#/c/89586/
Change-Id: Icfb489f375fc02395f69005105f8e84683676009
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
-System::Privileged
+User::Shell System::Privileged
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
+ONLYCAP_LIST="/etc/smack/onlycap"
# check initial boot
function check_init_boot
set_smack_label
fi
-echo "System::Privileged" > /sys/fs/smackfs/onlycap
+echo $(cat $ONLYCAP_LIST) > /sys/fs/smackfs/onlycap