From f3eb404e02f7a763d28ab0c78f09c26c13a3102e Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 30 Oct 2014 16:44:59 +0100 Subject: [PATCH] fix: make sure that non labeled files will get floor smack label Bug-Tizen: TC-1934 Change-Id: I93951c0c8cac6f3d1456377d17eed7ae94abae88 Signed-off-by: Philippe Coval --- setup-scripts-clone | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.7.4