/sbin/restorecon and hard links
Erik Sjölund
erik.sjolund at gmail.com
Wed Feb 15 13:19:29 UTC 2006
[root at e /]# cat /etc/redhat-release
Fedora Core release 4 (Stentz)
[root at e /]# adduser erik
[root at e /]# su - erik
[erik at e ~]$ ln /etc/passwd .
[erik at e ~]$ exit
[root at e /]# ls -lZ /etc/passwd
-rw-r--r-- root root system_u:object_r:etc_t /etc/passwd
[root at e /]# restorecon -R /home
[root at e /]# ls -lZ /etc/passwd
-rw-r--r-- root root user_u:object_r:user_home_t /etc/passwd
Should it be like that?
/sbin/restorecon -R /home
might lead to strange security contexts for files belonging to root.
cheers,
Erik
More information about the fedora-selinux-list
mailing list