From: Mike Frysinger <vapier@gentoo.org>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org, "Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: unshare(1) --propagation
Date: Sun, 22 Mar 2015 02:24:37 -0400 [thread overview]
Message-ID: <20150322062437.GK4504@vapier> (raw)
In-Reply-To: <20150318172603.GE28925@ws.net.home>
[-- Attachment #1: Type: text/plain, Size: 698 bytes --]
On 18 Mar 2015 18:26, Karel Zak wrote:
> Comments, objections?
i was looking for exactly this sort of feature recently :) -- namely to unshare
& mark everything private w/out having to write my own dummy wrapper.
i just worry about the next request where people want to mark everything private
except that one special mount ...
> +static unsigned long parse_propagation(const char *str)
> +{
> + size_t i;
> + struct prop_opts {
> + const char *name;
> + unsigned long flag;
> + } opts[] = {
> + { "slave", MS_REC | MS_SLAVE },
> + { "private", MS_REC | MS_PRIVATE },
> + { "shared", MS_REC | MS_SHARED },
> + { "off", 0 }
> + };
static/const ?
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-03-22 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 17:26 unshare(1) --propagation Karel Zak
2015-03-22 6:24 ` Mike Frysinger [this message]
2015-03-23 9:20 ` Karel Zak
2015-03-22 19:07 ` Eric W. Biederman
2015-03-23 9:21 ` Karel Zak
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=20150322062437.GK4504@vapier \
--to=vapier@gentoo.org \
--cc=ebiederm@xmission.com \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox