Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Hugh Dickins
On Tue, 8 Oct 2019, Karel Zak wrote: > On Tue, Oct 08, 2019 at 08:38:18PM +0800, Ian Kent wrote: > > > That's because the options in shmem_parse_options() are > > > "size=4G,nr_inodes=0", which indeed looks like an attempt to > > > retroactively limit size; but the user never asked "size=4G"

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Laura Abbott
On 10/7/19 9:26 PM, Al Viro wrote: On Mon, Oct 07, 2019 at 05:50:31PM -0700, Hugh Dickins wrote: [sorry for being MIA - had been sick through the last week, just digging myself from under piles of mail; my apologies] (tmpfs, very tiresomely, supports a NUMA "mpol" mount option which can have

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Karel Zak
On Tue, Oct 08, 2019 at 08:38:18PM +0800, Ian Kent wrote: > > That's because the options in shmem_parse_options() are > > "size=4G,nr_inodes=0", which indeed looks like an attempt to > > retroactively limit size; but the user never asked "size=4G" there. > > I believe that's mount(8) doing that.

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Ian Kent
On Tue, 2019-10-08 at 20:38 +0800, Ian Kent wrote: > On Mon, 2019-10-07 at 17:50 -0700, Hugh Dickins wrote: > > On Mon, 7 Oct 2019, Laura Abbott wrote: > > > On 9/30/19 12:07 PM, Laura Abbott wrote: > > > > Hi, > > > > > > > > Fedora got a bug report > >

Re: mount on tmpfs failing to parse context option

2019-10-08 Thread Ian Kent
On Mon, 2019-10-07 at 17:50 -0700, Hugh Dickins wrote: > On Mon, 7 Oct 2019, Laura Abbott wrote: > > On 9/30/19 12:07 PM, Laura Abbott wrote: > > > Hi, > > > > > > Fedora got a bug report > https://bugzilla.redhat.com/show_bug.cgi?id=1757104 > > > of a failure to parse options with the context

Re: mount on tmpfs failing to parse context option

2019-10-07 Thread Al Viro
On Mon, Oct 07, 2019 at 05:50:31PM -0700, Hugh Dickins wrote: [sorry for being MIA - had been sick through the last week, just digging myself from under piles of mail; my apologies] > (tmpfs, very tiresomely, supports a NUMA "mpol" mount option which can > have commas in it e.g "mpol=bind:0,2":

Re: mount on tmpfs failing to parse context option

2019-10-07 Thread Hugh Dickins
On Mon, 7 Oct 2019, Laura Abbott wrote: > On 9/30/19 12:07 PM, Laura Abbott wrote: > > Hi, > > > > Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1757104 > > of a failure to parse options with the context mount option. From the > > reporter: > > > > > > $ unshare -rm mount

Re: mount on tmpfs failing to parse context option

2019-10-07 Thread Laura Abbott
On 9/30/19 12:07 PM, Laura Abbott wrote: Hi, Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1757104 of a failure to parse options with the context mount option. From the reporter: $ unshare -rm mount -t tmpfs tmpfs /tmp -o

mount on tmpfs failing to parse context option

2019-09-30 Thread Laura Abbott
Hi, Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1757104 of a failure to parse options with the context mount option. From the reporter: $ unshare -rm mount -t tmpfs tmpfs /tmp -o 'context="system_u:object_r:container_file_t:s0:c475,c690"' mount: /tmp: wrong fs type,