]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: keep semantic consistent
authorKarel Zak <kzak@redhat.com>
Thu, 8 Jan 2015 11:27:59 +0000 (12:27 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Jan 2015 09:36:01 +0000 (10:36 +0100)
commit83fb8aa53d15dd7ee2c62bffa4fc04f70646650b
treee1a9180f256835935bfc14531bce988650d9d237
parentfbceefded6645de693d576cd988a703a6f60d207
nsenter: keep semantic consistent

The current nseneter behavior is inconsistent and depends on way how
namespace is specified on command line

    # nsenter --user
vs.
    # nseneter --user=filename

if the namespace is specified by <filename> than nsenter does not do
additinal setting and actions (e.g. does not call setgroups, setuid).
This is bug.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/nsenter.c