Skip to contentSkip to conversation

runcon and setsid()

DISCUSSION Russell Coker 2 participants 2 messages Jan 22, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

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/
#1 lore raw
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.