From: Andy Lutomirski <luto@amacapital.net>
To: Marcel Holtmann <marcel@holtmann.org>,
LKML <linux-kernel@vger.kernel.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: Issue with clone() and CLONE_NEWUSER as unprivileged user
Date: Thu, 21 Aug 2014 15:19:03 -0700 [thread overview]
Message-ID: <53F67057.4030202@amacapital.net> (raw)
In-Reply-To: <606D4327-C729-49F7-9CFD-3D25D0A62A13@holtmann.org>
On 08/17/2014 10:35 PM, Marcel Holtmann wrote:
> Hi,
>
> I am trying to use clone() and CLONE_NEWUSER for creating a new user namespace as an unprivileged user. I always get an operation not permitted error. However when I used fork() + unshare() as unprivileged user, I can create the new user namespace just fine.
>
> Is there something obvious that I am missing? My understand is that CLONE_NEWUSER should not require any special capabilities. I tried the sample code from the manpage and also from LWN.net, but both give me the same error.
It works for me on 3.16 and 3.15 but not on 3.15.8-200.fc20.x86_64. I'm
a bit confused. What kernel are you using?
--Andy
>
> Regards
>
> Marcel
>
next prev parent reply other threads:[~2014-08-21 22:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 5:35 Issue with clone() and CLONE_NEWUSER as unprivileged user Marcel Holtmann
2014-08-21 22:19 ` Andy Lutomirski [this message]
2014-08-21 22:26 ` Marcel Holtmann
2014-08-22 0:11 ` Andy Lutomirski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F67057.4030202@amacapital.net \
--to=luto@amacapital.net \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.