Re: Does SELinux-enabled mkdir *really* need --context=CTX (aka -Z CTX)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 18, 2006 at 15:23:18 +0200,
  Jim Meyering <meyering@xxxxxxxxxx> wrote:
>   At first, when I saw that the SELinux-enabled cp provides a new
>   --context=CTX option, I figured mv should have the same one, since
>   mv sometimes needs to perform a copy.  But a better way to look at
>   that is to wonder if cp really needs the option.  It's for _copying_
>   after all: preserving, not changing permissions or SELinux "labels".
>   When I raised the issue on the SELinux mailing list, most agreed that
>   neither mv nor cp need that option.  Of course, regardless of whether
>   there are new options, mv should always attempt to preserve any existing
>   SELinux context, and cp should be able to do so, too.

Note that cp doesn't copy (group) ownership and permissions (unmask is
applied) by default. It may make sense to let --preserve and -p control
whether the original context is copied over.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux