Bug 14166 - please consider adding the -Z option to mv and cp
Summary: please consider adding the -Z option to mv and cp
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-22 15:07 UTC by josch
Modified: 2021-10-07 22:20 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description josch 2021-08-22 15:07:19 UTC
Hi,

would it be in the scope of busybox to have the -Z option for the mv and cp tools doing the same as the GNU coreutils counterparts:

       -Z     set  SELinux security context of destination file to default type

I can try providing a patch if desired.

Thanks!

cheers, josch
Comment 1 Denys Vlasenko 2021-10-07 22:20:28 UTC
Please submit a patch to the mailing list.