Re: touch & how labels are created

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

 



On Saturday 04 December 2010 16:03:30 Jorge Fábregas wrote:
> cd /etc
> rm hosts
> touch hosts
> 
> ls -lZ /etc/hosts
> (it shows etc_t as its type)
> 
> If I do a restorecon of the hosts file I'll get the correct net_conf_t for
> the  file.

Ok, I kept searching... Is it because, in order for the touch command (bin_t) 
to create a file in /etc/ labeled as net_conf_t, a file-transition rule allowing 
this should have existed?  If there's no rule, the default is to use the label 
of the parent directory?

-- 
Jorge
--
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