[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
/sbin/restorecon and hard links
- From: Erik Sjölund <erik sjolund gmail com>
- To: fedora-selinux-list redhat com
- Subject: /sbin/restorecon and hard links
- Date: Wed, 15 Feb 2006 14:19:29 +0100
[root e /]# cat /etc/redhat-release
Fedora Core release 4 (Stentz)
[root e /]# adduser erik
[root e /]# su - erik
[erik e ~]$ ln /etc/passwd .
[erik e ~]$ exit
[root e /]# ls -lZ /etc/passwd
-rw-r--r-- root root system_u:object_r:etc_t /etc/passwd
[root e /]# restorecon -R /home
[root 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]