Re: file_contexts.homedirs and new users

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

 



On Wed, Apr 07, 2010 at 20:42:23 +0200,
  Klaus Lichtenwalder <k.lichtenwalder@xxxxxxxxxxxx> wrote:
> Hi,
> 
> I just stumbled about the effect that adding a new user and creating a
> .ssh directory does not automatically fix its context though it's listed
> in file_contexts.homedirs (this was done via unattended package
> installs). It is fixed by an explicit restorecon, though.
>  I searched google up and down and did not find how/when the
> homedirs-File gets applied. Restorecon explicitely used sets the context
> to home_ssh_t and everything is fine. So sorry if I missed something
> obvious, but I just don't get how and when the policy from
> file_contexts.homedirs gets applied
> (it's on an up to date F12 system)

The file context information only gets used when relabelling.
The context of new created files and directories depends on the context of
the directory they are being created in and the context of the process
doing the creation and any manual overrides made by the creating process.
--
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