From: Philippe Coval Date: Thu, 30 Oct 2014 15:44:59 +0000 (+0100) Subject: fix: make sure that non labeled files will get floor smack label X-Git-Tag: accepted/tizen/mobile/20141117.085340 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Fmobile%2F20141117.085340;hp=e759fb56caad0383843773b83e7fc86bcb09ec97;p=platform%2Fadaptation%2Fsetup-scripts.git fix: make sure that non labeled files will get floor smack label Bug-Tizen: TC-1934 Change-Id: I93951c0c8cac6f3d1456377d17eed7ae94abae88 Signed-off-by: Philippe Coval --- diff --git a/setup-scripts-clone b/setup-scripts-clone index 193a0c2..f7ebaf5 100755 --- a/setup-scripts-clone +++ b/setup-scripts-clone @@ -319,7 +319,10 @@ copy_the_data() verbose "copy partition $pnum:" \ "\"$src_mntdir\" -> \"$dst_mntdir\"" + local context=$(cat "/proc/$$/attr/current") + echo -n '_' > "/proc/$$/attr/current" rsync -WaHXSh --exclude "${tmpdir}" "$src_mntdir/" "$dst_mntdir/" + echo -n "$context" > "/proc/$$/attr/current" pnum="$(($pnum + 1))" done