Ok, I can confirm that Marc is right.
I was using a kernel.org kernel when I ran the tests initially, so I did not run into yama. I shall edit my initial post to note this.
If I use the default Ubuntu kernel for my Oneiric :
unpriv-user$ ln -s /etc/file_to_create /var/lock/selinux-relabel
root@machine:~# /etc/init.d/selinux start * Starting SELinux autorelabel /usr/bin/touch: cannot touch `/var/lock/selinux-relabel': Permission denied
root@machine:~# uname -r 2.6.38-8-generic-pae
root@machine:/proc/sys/kernel/yama# cat protected_sticky_symlinks 1
If however protected_sticky_symlinks is turned set to 0, then the link is followed, so it seems prudent to fix it anyway.
Ok, I can confirm that Marc is right.
I was using a kernel.org kernel when I ran the tests initially, so I did not run into yama.
I shall edit my initial post to note this.
If I use the default Ubuntu kernel for my Oneiric :
unpriv-user$ ln -s /etc/file_to_create /var/lock/ selinux- relabel
root@machine:~# /etc/init.d/selinux start selinux- relabel' : Permission denied
* Starting SELinux autorelabel
/usr/bin/touch: cannot touch `/var/lock/
root@machine:~# uname -r 8-generic- pae
2.6.38-
root@machine: /proc/sys/ kernel/ yama# cat protected_ sticky_ symlinks
1
If however protected_ sticky_ symlinks is turned set to 0, then the link is followed, so it seems prudent to fix it anyway.