Re: unshare(1) --propagation

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

 



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: signature.asc
Description: Digital signature


[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