On 28/10/2014 14:35, José Bollo wrote:
On mar, 2014-10-28 at 14:34 +0100, Xavier Roche wrote:
...
- Currently on  toybox, the cp command does not provide a --preserve
option that takes into account the security context and/or extented
attributes (just like coreutils does).
This has to be added in toybox the same way you have done with the
other command, and I will create a task for this today.

- But, a specific cp -Z option is provided on coreutils upstream
branch which is not on the tizen branch.
Hi,
I wasn't aware of that option -Z on cp command. Is it the behaviour of
copying security attributes? If yes, it could be good to add it in
tizen.
yes it is. Basically, here is the upstream description of the command option :

   "-Z                               set SELinux security context of
   destination file to default type"
   "--context[=CTX]         like -Z, or if CTX is specified then set
   the SELinux or SMACK security context to CTX"



     -> My proposal would be to add this missing option to the toybox
cp command, so that we could preserve or force a security context
while copying files.

I will then see to what extent our patches could be pushed upstream
once all done, so you don't have to take care of this.
Good ideas.

Best regards
José



_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to