[Dev] ToyBox task
xavier.roche at open.eurogiciel.org
Tue Oct 28 13:48:47 GMT 2014
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.
> 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
yes it is. Basically, here is the upstream description of the command
"-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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev