Remove smack labeling for /csa 90/324590/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20250523.063410
authorDongsun Lee <ds73.lee@samsung.com>
Fri, 13 Dec 2024 07:13:10 +0000 (16:13 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Wed, 21 May 2025 07:03:25 +0000 (16:03 +0900)
Change-Id: Ia2b3b36e8c4bdb75a6b98c93ad2af868c691c807

smack/smack_default_labeling

index abe764eda0bddb52f7ddb353df58b73b60c4231f..01b51b608917d69d603a55534599462cfdd63830 100644 (file)
@@ -3,38 +3,6 @@
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 ONLYCAP_LIST="/etc/smack/onlycap"
 
-# check initial boot
-function check_init_boot
-{
-       if [ ! -e /opt/share/security-config/.smack_pre_labeling ]
-       then
-               touch /opt/share/security-config/.smack_pre_labeling
-               return 1
-       fi
-       return 0
-}
-
-# Set default smack label for the specific file or folder
-function set_smack_label
-{
-       if [ -e /csa ]
-       then
-               chsmack -r -a "_" /csa
-               if [ -e /csa/nv ]
-               then
-                       chown -R telephony:telephony /csa/nv
-                       chsmack -r -a "System" /csa/nv
-               fi
-       fi
-}
-
-check_init_boot
-
-if [ "$?" == 1 ] # Init boot case
-then
-       set_smack_label
-fi
-
 echo $(cat $ONLYCAP_LIST) > /sys/fs/smackfs/onlycap
 echo "1" > /sys/fs/smackfs/ptrace