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: b...@freebsd.org
          Reporter: si...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to