Date: Fri, 17 Aug 2018 08:24:25 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230687] rmuser kill_procs kills processes in jails Message-ID: <bug-230687-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230687 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@FreeBSD.org Reporter: simon@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 hid= den behind an argument such as --no-jail / -F but don't know if this is desirab= le. It doesn't seem there are much better options here as we can't get the curr= ent JID as far as I'm aware. If that were possible we could add the -J $JID fla= g to ps. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230687-227>