coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

cp, ls, mv: Implement SELinux context handling

Open a-wai opened this issue 4 years ago • 6 comments

Similarly to what is reported for install in #1809 several other GNU utilities such as cp, ls and mv implement similar options for dealing with files' security contexts:

  • ls: -Z, --context print any security context of each file
  • mv: -Z, --context set SELinux security context of destination file to default type
  • cp: -Z set SELinux security context of destination file to default type (--context has a similar, but potentially different meaning here, and should also be considered)

a-wai avatar Jun 11 '21 16:06 a-wai

Would it make sense to optionally pass in a parameter list that does the full chmod/chown/chgrp/chattr?

chadbrewbaker avatar Oct 10 '21 00:10 chadbrewbaker

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 13 '23 12:01 stale[bot]

Hasn't been fixed yet

tertsdiepraam avatar Jan 13 '23 22:01 tertsdiepraam