[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvzxLP_UTQbwEY99bQfyftWzZHwaOP+WrzJ8099EKtbVLg@mail.gmail.com>
Date: Wed, 14 Feb 2018 12:30:18 +0100
From: Richard Weinberger <richard.weinberger@...il.com>
To: Enrico Weigelt <lkml@...ux.net>
Cc: Aleksa Sarai <asarai@...e.de>,
Linux Containers <containers@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: plan9 semantics on Linux - mount namespaces
On Wed, Feb 14, 2018 at 12:27 PM, Enrico Weigelt <lkml@...ux.net> wrote:
> On 14.02.2018 11:24, Aleksa Sarai wrote:
>
>> What distribution are you using and which release?
>
>
> On a self-compiled system.
>
> Forgot to enable namespaces in the kernel. Now it seems to work
> as root, but not as an unprivileged user:
>
>
> daemon@...habox:~ unshare -r -U
> unshare: can't open '/proc/self/setgroups': Permission denied
> daemon@...habox:~ unshare -f -r -U
> unshare: can't open '/proc/self/setgroups': Permission denied
>
Please read http://man7.org/linux/man-pages/man7/user_namespaces.7.html
setgroups is a corner case and needs special care.
--
Thanks,
//richard
Powered by blists - more mailing lists