Re: default and new file contexts

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/25/2013 10:13 AM, m.roth@xxxxxxxxx wrote:
> We've got a scratch directory; in it, any user can write. I've gotten 
> complaints of unlabled, and I found and set them to default_t.
> 
> Here's the question: if I use semanage to set one of the user 
> subdirectories to, say, default_t, and they try to copy a file that already
> has a valid context, would that context be changed to default_t, or would
> it retain its existing context?
> 
> Thanks in advance.
> 
> mark
> 
> -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx 
> https://admin.fedoraproject.org/mailman/listinfo/selinux
> 
> 
If it is shared by users I would label it something like user_home_t.

cp command adopts the label of the destination parent directory or file (Most
of the time).

mv command maintains the label of the source.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFQeXgACgkQrlYvE4MpobM4aACg59TmAMh08q/hDUPgFhcFLbWs
J4IAoKS4/cdSU1LUBDtTiXqr+qpHrDAc
=Ilac
-----END PGP SIGNATURE-----
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux