All of lore.kernel.org
 help / color / mirror / Atom feed
* cp: --preserve={context,xattr,acl}
@ 2006-08-18 18:03 Jim Meyering
  2006-08-18 18:30 ` James Antill
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Meyering @ 2006-08-18 18:03 UTC (permalink / raw)
  To: selinux

Currently, upstream cp can selectively preserve a few different attributes.
>From the documentation:

  `-p'
  `--preserve[=ATTRIBUTE_LIST]'
       Preserve the specified attributes of the original files.  If
       specified, the ATTRIBUTE_LIST must be a comma-separated list of
       one or more of the following strings:

      `mode' ...
      `ownership'
      `timestamps'
      `links'
      `all'

       Using `--preserve' with no ATTRIBUTE_LIST is equivalent to
       `--preserve=mode,ownership,timestamps'.

       In the absence of this option, each destination file is created
       with the permissions of the corresponding source file, minus the
       bits set in the umask and minus the set-user-ID and set-group-ID
       bits.  *Note File permissions::.

The SELinux patches add "context" to the list.
and upstream treats ACLs like "mode".

However, with XATTR support, I may well add two more: "xattr" and "acl".

But then there'd be overlap between --preserve=xattr and --preserve=context,
Since I presume the latter subsumes the former.  Right?

So if both were specified on a selinux-enabled system,
would there be any point in doing anything XATTR-specific?

What do you think?

Jim

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-18 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 18:03 cp: --preserve={context,xattr,acl} Jim Meyering
2006-08-18 18:30 ` James Antill

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.