runcon and setsid()
https://lists.debian.org/debian-devel/2014/01/msg00164.html
Above is the URL for a post to debian-devel about su and exploits involving TIOCSTI ioctl. They mention runcon, should we be calling setsid() in there?
I haven't inspected the runcon source recently, but a quick strace run on Debian/Unstable shows that setsid() isn't being called.
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
Quoted 7 lines · Russell Coker
https://lists.debian.org/debian-devel/2014/01/msg00164.html
Above is the URL for a post to debian-devel about su and exploits involving TIOCSTI ioctl. They mention runcon, should we be calling
setsid()in there?I haven't inspected the runcon source recently, but a quick strace run on Debian/Unstable shows that
setsid()isn't being called.
SELinux revalidates access to the controlling tty on a context transition and will drop the controlling tty if it is not allowed. So at present that is controlled by policy.