[Bug 230687] rmuser kill_procs kills processes in jails
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 17 08:24:27 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230687
Bug ID: 230687
Summary: rmuser kill_procs kills processes in jails
Product: Base System
Version: 11.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: simon at ikanobori.jp
The usr.sbin/adduser/rmuser.sh script which ends up in /usr/sbin/rmuser when
ran from a host system such as `rmuser user` will kill all processes owned by
`user` in its kill_procs routine by identifying processes with `ps -U $USER`.
This includes jailed processes which is not something to be expected (or is
it?).
I could submit a patch which would remove processes which have a J flag hidden
behind an argument such as --no-jail / -F but don't know if this is desirable.
It doesn't seem there are much better options here as we can't get the current
JID as far as I'm aware. If that were possible we could add the -J $JID flag to
ps.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list