Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Chris Friedhoff <chris@...>
Cc: Serge E Hallyn <sergeh@...>, <linux-security-module@...>, Stephen Smalley <sds@...>, Andrew Morgan <morgan@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Monday, November 19, 2007 - 7:16 pm

Quoting Chris Friedhoff (chris@friedhoff.org):

Ok, so here is the flow.

First off, using runlevel 5 on FC7, using 'log out' correctly brings
you back to a new login prompt.  Your problem is starting in runlevel
3, and typing 'xinit .xinitrc';  when you exit your wm, xinit is not
allowed to kill X so you don't get back to your console.

First comment is, as you point out on your homepage, you could
	setfcaps -c cap_kill+p -e /usr/bin/xinit
Then xinit is allowed to kill X.  Yes xinit forks and execs a
user-writable script, but of course upon the exec to start the script
cap_kill is lost, so the user can't abuse this.

Since you pointed this out on your homepage, I have to assume you've
decided you don't want to give cap_kill to xinit?

My other question is - do we want to maintain this signal restriction?
So long as a privileged process isn't dumpable, is it any more dangerous
for user hallyn to kill capability-raised process owned by hallyn than
it is to kill a setuid process started by hallyn?  If we decide no, then
maybe we should remove cap_task_kill() as well as the cap_task_setnice(),
cap_task_setioprio(), cap_task_setscheduler()?

Or maybe i've just forgotten a compelling scenario...

thanks,
-serge
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Posix file capabilities in 2.6.24rc2, Chris Friedhoff, (Tue Nov 13, 6:07 pm)
Re: Posix file capabilities in 2.6.24rc2, Serge E. Hallyn, (Tue Nov 13, 7:53 pm)
Re: Posix file capabilities in 2.6.24rc2, Chris Friedhoff, (Wed Nov 14, 5:12 am)
Re: Posix file capabilities in 2.6.24rc2, Serge E. Hallyn, (Wed Nov 14, 2:02 pm)
Re: Posix file capabilities in 2.6.24rc2, Chris Friedhoff, (Thu Nov 15, 6:02 pm)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Chris Friedhoff, (Mon Nov 19, 9:39 am)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Serge E. Hallyn, (Mon Nov 19, 7:16 pm)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Chris Friedhoff, (Tue Nov 20, 5:46 am)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Serge E. Hallyn, (Tue Nov 20, 10:51 am)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Andrew Morgan, (Thu Nov 22, 3:42 am)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Chris Friedhoff, (Tue Nov 20, 6:29 pm)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Serge E. Hallyn, (Tue Nov 20, 6:51 pm)
Re: Posix file capabilities in 2.6.24rc2; now 2.6.24-rc3, Chris Friedhoff, (Tue Nov 20, 8:50 pm)