Skip to contentSkip to conversation

Waiting for programs to stop

DISCUSSION Victor Porton 3 participants 4 messages Jan 10, 2014 – Jan 12, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

I remind that we discuss sandboxing of untrusted programs.

My application needs to receive a signal when ALL direct and indirect children of a process (including this process itself) started in a sandbox exit (it should work even when they call setsid()).

Can this be done with the current kernel?

Signature · 1 line
Victor Porton - http://portonvictor.org
#1 lore raw

I remind that we discuss sandboxing of untrusted programs.

My application needs to receive a signal when ALL direct and indirect children of a process (including this process itself) started in a sandbox exit (it should work even when they call setsid()).

You can assume that the sandboxing binary creates a new cgroup.

Can this be done with the current kernel?

--
Victor Porton - http://portonvictor.org

#2 lore raw
In reply to Victor Porton
Quoted 7 lines · On Fri, 10 Jan 2014 20:56:18 +0200 Victor Porton <[email protected]> wrote:

I remind that we discuss sandboxing of untrusted programs.

My application needs to receive a signal when ALL direct and indirect children of a process (including this process itself) started in a sandbox exit (it should work even when they call setsid()).

Can this be done with the current kernel?

This is completely unrelated to SELinux, so please don't discuss it on this list. Have a look into cgroups ("notify_on_release").

Signature · 2 lines
Luis Ressel <[email protected]>
GPG fpr: F08D 2AF6 655E 25DE 52BC  E53D 08F5 7F90 3029 B5BD
#3 lore raw
In reply to Victor Porton
Quoted 7 lines · On Fri, 10 Jan 2014 20:56:18 +0200 Victor Porton <[email protected]> wrote:

I remind that we discuss sandboxing of untrusted programs.

My application needs to receive a signal when ALL direct and indirect children of a process (including this process itself) started in a sandbox exit (it should work even when they call setsid()).

Can this be done with the current kernel?

This is completely unrelated to SELinux, so please don't discuss it on this list. Have a look into cgroups ("notify_on_release").

Signature · 2 lines
Luis Ressel <[email protected]>
GPG fpr: F08D 2AF6 655E 25DE 52BC  E53D 08F5 7F90 3029 B5BD