SMACK startproc patch

Previous thread: CONFIG_SECURITY_ROOTPLUG [was: Re: 2.6.27-rc7 no init found on the root partition?] by Lukas Hejtmanek on Thursday, September 25, 2008 - 9:54 am. (5 messages)

Next thread: [patch 2.6.27-rc7] omap drivers switch to standard GPIO calls by David Brownell on Thursday, September 25, 2008 - 10:14 am. (1 message)
From: Tilman Baumann
Date: Thursday, September 25, 2008 - 9:27 am

Sorry if i pollute the wrong list with my stuff. But SMACK does not seem 
to have it's own list and now lives in the kernel. Though this is 
userspace related...

The smack howto mentions a not yet implemented smack option for 
start-stop-daemon.
We mainly use startproc. So i made a patch which adds this functionality 
to startproc.

It adds the option [-S LABEL] to startproc, which brings the called 
process up with /proc/self/attr/current = LABEL.
I figured setting the security context should happen after things like 
pidfiles where written. But this is certainly up for discussion.

This patch applies to killproc version 2.08.

Please enjoy and comment.

Regards
  Tilman Baumann

-- 
Tilman Baumann
Software Developer
Collax GmbH . Boetzinger Strasse 60 . 79111 Freiburg . Germany

p: +49 (0) 89-990157-0
f: +49 (0) 89-990157-11

Geschaeftsfuehrer: William K. Hite / Boris Nalbach
AG Muenchen HRB 158898, Ust.-IdNr: DE 814464942
Previous thread: CONFIG_SECURITY_ROOTPLUG [was: Re: 2.6.27-rc7 no init found on the root partition?] by Lukas Hejtmanek on Thursday, September 25, 2008 - 9:54 am. (5 messages)

Next thread: [patch 2.6.27-rc7] omap drivers switch to standard GPIO calls by David Brownell on Thursday, September 25, 2008 - 10:14 am. (1 message)