openrc/src/librc
William Hubbs 9eb9b28d3e librc: filter out container processes on OpenVZ host
Thanks to info and testing done by Daniel Robbins <drobbins@funtoo.org>,
there is now a fix for this. Below is his description of the steps
OpenRC needed to use.

1) See if /proc/<pid>/status exists
2) If it does, see if it has a "envID:" field
3) If it does, see if "envID:" is set to "0"
4) If so, then it's one of the host's processes and should be a
candidate for the list. Otherwise, it is one of the container's
processes and should be ignored.

This should fix the bug and allow start-stop-daemon to work properly on
OpenVZ hosts.

X-Gentoo-Bug: 376817
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=376817
2014-06-20 16:01:47 -05:00
..
.gitignore clean up gitignore files 2011-06-03 17:07:22 -04:00
librc-daemon.c librc: filter out container processes on OpenVZ host 2014-06-20 16:01:47 -05:00
librc-depend.c librc: fix off-by-one bug 2013-10-04 14:01:46 -05:00
librc-misc.c librc: Do not output error messages from within the library. 2012-03-26 15:04:40 -05:00
librc-stringlist.c drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
librc.c librc: do not allow "." and ".." as runlevel names 2013-10-21 14:21:22 -05:00
librc.h librc: make rc_proc_getent available for all operating systems 2012-02-25 15:00:03 -06:00
Makefile make BINDIR and SBINDIR available to input files 2013-02-23 20:30:39 -06:00
rc.h.in Do not add a prefix to the /run directory 2012-12-03 18:33:21 -06:00
rc.map Rename proc_getent to rc_proc_getent and make it global 2012-01-15 01:02:11 +01:00