]> git.ipfire.org Git - thirdparty/shadow.git/commit
Do not mistake a regular user process for a namespaced one 212/head
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 20 Jan 2020 12:58:07 +0000 (13:58 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 21 Jan 2020 08:16:10 +0000 (09:16 +0100)
commitfd4405b763d26649339069532e79bd45013c8c38
tree4e2e8df7890c34e976b930a46bbde730e36c6e26
parent3e942adb213b0cf918af7b0a127c27b2eaa11586
Do not mistake a regular user process for a namespaced one

In case there is a regular user with a process running on a system
with uid falling into a namespaced uid range of another user.
The user with the colliding namespaced uid range will not be
allowed to be deleted without forcing the action with -f.

The user_busy() is adjusted to check whether the suspected process
is really a namespaced process in a different namespace.
libmisc/user_busy.c