- It was only applied on mobile / wearable profiles before.
- This should be worked on other profiles also.
Change-Id: I62584c73eb638d68b82944a7ea0de862c53b6503
# Set SMACK label as "System::Privileged" in /opt/var/security-manager/rules
chsmack -r -a "System::Privileged" /opt/var/security-manager/rules
+
+# change permission to /opt/var/lib/misc
+# This is needed to retrieve CAP_DAC_OVERRIDE from mobileap-agent & dnsmasq.
+if [ -e /opt/var/lib/misc ]
+then
+ chown root:system_share /opt/var/lib/misc
+ chmod 0775 /opt/var/lib/misc
+fi
+
# onlycap feautre
chsmack -e "User" /usr/bin/launchpad-loader
chsmack -e "User" /usr/bin/wrt-loader
-
- # change permission to /opt/var/lib/misc
- # This is needed to retrieve CAP_DAC_OVERRIDE from mobileap-agent & dnsmasq.
- chown root:system_share /opt/var/lib/misc
- chmod 0775 /opt/var/lib/misc
}
check_init_boot