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/common/20141104.120739^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F29684%2F2;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