diff options
author | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-04-11 13:30:23 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-04-11 13:30:23 +0200 |
commit | 2783f0dfa74e2aa786f77552494a04be014279df (patch) | |
tree | 7fbe9b183688d02272ae88ab25da7d3997ad4113 /scripts | |
parent | ce2a20e170129e9c1c541ad7fa655ddc44083aa8 (diff) | |
download | meta-2783f0dfa74e2aa786f77552494a04be014279df.tar.gz meta-2783f0dfa74e2aa786f77552494a04be014279df.tar.bz2 meta-2783f0dfa74e2aa786f77552494a04be014279df.zip |
base: adjust smack labels on user homedirs
also predefine appfw user dirs
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generic-base.post | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/generic-base.post b/scripts/generic-base.post index df85e42..16daa89 100644 --- a/scripts/generic-base.post +++ b/scripts/generic-base.post @@ -91,9 +91,14 @@ uid=5001 for user in alice bob carol; do useradd -u $uid -d /home/$user -g users -G audio,video,users,display -m --password "$tizen_crypted_pass" $user - chsmack -a User /home/$user uid=$(( $uid + 1 )) done -# fix guest homedir -chsmack -a User /home/guest + +# create appfw dirs inside homes +for user in alice bob carol app guest; do + for appdir in desktop manifest dbspace; do + mkdir -p /home/$user/.applications/$appdir + done + find /home/$user/ -type d -exec chsmack -a User {} \; +done |