From: Hyotaek Shim Date: Wed, 13 Sep 2017 02:34:36 +0000 (+0900) Subject: Set the permission and smack label of TZ_USER_CONTENT/symbolic link files including... X-Git-Tag: submit/tizen/20170914.011138^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df4d275c6e19f0d6b10cdcb00b54cee8ee52d004;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Set the permission and smack label of TZ_USER_CONTENT/symbolic link files including /opt/usr/home/owner/media/Shared lrwxrwxrwx 1 root priv_mediastorage _ 21 Sep 13 2017 Shared -> /opt/usr/media_shared Change-Id: I6af858c16c05ec60a5c457cd2be7fb3d0b70a257 Signed-off-by: Hyotaek Shim --- diff --git a/config/90_user-content-permissions.post b/config/90_user-content-permissions.post index ed3eaca..181d38e 100644 --- a/config/90_user-content-permissions.post +++ b/config/90_user-content-permissions.post @@ -5,3 +5,4 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin NEW_USER=$1 export `tzplatform-get --user $NEW_USER TZ_USER_CONTENT` find $TZ_USER_CONTENT -type d -exec chown root:priv_mediastorage {} + -exec chmod 2770 {} + +find $TZ_USER_CONTENT -type l -exec chown -h root:priv_mediastorage {} + -exec chsmack -a '_' {} +