mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Notifying on empty cgroup
@ 2014-01-15  4:12 Victor Porton
  2014-01-15 13:59 ` Michal Hocko
  0 siblings, 1 reply; 4+ messages in thread
From: Victor Porton @ 2014-01-15  4:12 UTC (permalink / raw)
  To: linux-kernel

I want to write software which needs to receive a signal when the cgroup 
created by it becomes empty. (After this the empty cgroup should be deleted 
just not to clutter the memory.)

If the kernel does not support such notifications, it should be improved. 
This functionality is crucial for some kinds of software.

There is /sys/fs/cgroup/systemd/release_agent but I don't understand how to 
use it. I don't understand why we would need it at all.

Starting a binary on emptying a cgroup with the purpose to notify an other 
binary looks like a big overkill. Also my program should work in userspace 
without the need to use release_agent which can be accessed only by root.

Note that my work is related with sandboxing software (running a program in 
closed environment, so that it would be unable for example to remove user's 
files).

See also
http://portonsoft.wordpress.com/2014/01/11/toward-robust-linux-sandbox/

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-15 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-15  4:12 Notifying on empty cgroup Victor Porton
2014-01-15 13:59 ` Michal Hocko
2014-01-15 14:11   ` Victor Porton
2014-01-15 15:12     ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®