Re: unshare(1) --propagation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 22, 2015 at 02:24:37AM -0400, Mike Frysinger wrote:
> 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 ?

 Fixed.

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux