http://qa.mandrakesoft.com/show_bug.cgi?id=4230





------- Additional Comments From [EMAIL PROTECTED]  2003-22-07 05:08 -------
Created an attachment (id=540)
 --> (http://qa.mandrakesoft.com/attachment.cgi?id=540&action=view)
Patch to check that the roots match.

Patch to fix this.  Might need to offer an option to bypass this check for
processes that always run in a chroot.

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
native system: /
chroot system: /chroot

xfs is used as an example, same applies to other daemons (cron, etc)

Deinstall XFree86-xfs from chroot system. xfs is not running in chroot (no pid
file), killproc doesn't find a pid file, looks up the "xfs" processes in the
process table and kills them. Result: xfs running in native system ( / ) is killed.

possible fix: check if the process you are trying to kill has the same root.
- lsof will give this information in "rtd".
- compare if /proc/$$/root = /proc/$kill_pid/root

Reply via email to