add capability with ei permisstion in chmod, chgrp 66/91766/1
authorkeeho.yang <keeho.yang@samsung.com>
Tue, 11 Oct 2016 08:09:35 +0000 (17:09 +0900)
committerkeeho.yang <keeho.yang@samsung.com>
Tue, 11 Oct 2016 08:09:48 +0000 (17:09 +0900)
Change-Id: Ieacc75f906e296149a777e19041db38b3d6ac4d1

config/set_capability

index f29e7762a19643e9251c51924f19b4f021ffb23a..17f59ed88d3052982f2c101c7fbf4690a15c1efa 100755 (executable)
@@ -272,3 +272,25 @@ fi
 if [ -e "/usr/sbin/xtables-multi" ]
 then /usr/sbin/setcap cap_dac_override,cap_net_admin,cap_net_raw,cap_sys_admin=ei /usr/sbin/xtables-multi
 fi
+
+# Package               chmod
+# Onwer                 Changyeon Lee(cyeon.lee@samsung.com)
+# Date                  Oct 11, 2016
+# Required              cap_fowner
+# Capability Bit        only effective and inheriable
+# cap_fowner           to pass permisstion check
+
+if [ -e "/usr/bin/chmod" ]
+then /usr/sbin/setcap cap_fowner=ei /usr/bin/chmod
+fi
+
+# Package               chgrp
+# Onwer                 Changyeon Lee(cyeon.lee@samsung.com)
+# Date                  Oct 11, 2016
+# Required              cap_chown
+# Capability Bit        only effective and inheriable
+# cap_fowner           to change files UIDs and GID
+
+if [ -e "/usr/bin/chmod" ]
+then /usr/sbin/setcap cap_chown=ei /usr/bin/chgrp
+fi