[Lxc-users] [lxc-devel] Restarting snmp service on the host, shutdown snmp on the guest.
Trent W. Buck
twb at cybersource.com.au
Fri Jan 21 01:22:21 UTC 2011
Michael Tokarev <mjt at tls.msk.ru> writes:
> On 20.01.2011 19:09, Jean-Philippe Menil wrote:
>> start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd
>>
>> So it's not based on the pid of the process, but on the executable file.
>
> See above. And file a bugreport against debian snmpd startup script.
> It is actually (albiet very low) security issue too: the startup
> script will kill unrelated user processes named "snmpd" too.
Only if their /proc/self/exe links to the same inode as (the dom0's)
/usr/sbin/snmpd, if I understand start-stop-daemon semantics.
Otherwise, it would also stop the stop script itself, because
/etc/init.d/foo also has an argv[0] of "foo"!
More information about the lxc-users
mailing list