chiark / gitweb /
SELinux: label created symlink instead of node
authorRussell Coker <russell@coker.com.au>
Tue, 5 Dec 2006 13:32:44 +0000 (14:32 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 5 Dec 2006 13:32:44 +0000 (14:32 +0100)
commiteb8b496e890de4ba347f78f0e7e978117ab2a479
tree4e3477339719f4a273e9e7552dcc8b2228a11462
parent5284454d5f4e7ebe6c7095cf78318020ca9991bf
SELinux: label created symlink instead of node

The current code will label the target of a symlink rather than the
link itself.  This means that the link does not get it's context set
and the target gets the wrong context.
Incidentally this affects the labelling of hard disk device nodes and
can get in the way of booting.

Also get_media() should not be called with devname==NULL.
udev_selinux.c