fix: make sure that non labeled files will get floor smack label 84/29684/2 accepted/tizen/common/20141104.120739 accepted/tizen/ivi/20141107.030604 accepted/tizen/mobile/20141117.085340 submit/tizen/20141104.111448
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 30 Oct 2014 15:44:59 +0000 (16:44 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 31 Oct 2014 15:02:24 +0000 (16:02 +0100)
Bug-Tizen: TC-1934
Change-Id: I93951c0c8cac6f3d1456377d17eed7ae94abae88
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
setup-scripts-clone

index 193a0c2..f7ebaf5 100755 (executable)
@@ -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