public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* 4.2: Can't mount sysfs in a mount ns & user ns
@ 2015-08-13  7:53 Lubomir Rintel
  2015-08-13 15:20 ` Eric W. Biederman
  0 siblings, 1 reply; 7+ messages in thread
From: Lubomir Rintel @ 2015-08-13  7:53 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Eric W. Biederman

Hi,

4.0.6-300.fc22.x86_64:
[lkundrak@fedora22-1 ~]$ unshare -r --mount --net
[root@fedora22-1 ~]# mount --make-slave /sys
[root@fedora22-1 ~]# mount -t sysfs sysfs /sys
[root@fedora22-1 ~]# 

4.2.0-0.rc6.git0.1.fc24.x86_64:
[lkundrak@fedora23-1 ~]$ unshare -r --mount --net
[root@fedora23-1 ~]# mount --make-slave /sys
[root@fedora23-1 ~]# mount -t sysfs sysfs /sys
mount: permission denied
[root@fedora23-1 ~]#

we use this in NetworkManager test suite, to ensure the devices we see
via GUdev are the same as we see via rtnetlink.

I'm wondering if this is a bug or an intended change?

Thanks,
Lubo 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-17 20:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13  7:53 4.2: Can't mount sysfs in a mount ns & user ns Lubomir Rintel
2015-08-13 15:20 ` Eric W. Biederman
2015-08-13 16:07   ` Lubomir Rintel
2015-08-13 16:17     ` Eric W. Biederman
2015-08-14 13:21       ` [PATCH] kdbus: create /sys/fs/kdbus with sysfs_create_mount_point() Lubomir Rintel
2015-08-17 17:23         ` David Herrmann
2015-08-17 20:52           ` Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox