Bug 14166

Summary: please consider adding the -Z option to mv and cp
Product: Busybox Reporter: josch
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: enhancement CC: busybox-cvs, josch
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.