From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lubomir Rintel Subject: 4.2: Can't mount sysfs in a mount ns & user ns Date: Thu, 13 Aug 2015 09:53:16 +0200 Message-ID: <1439452396.23299.33.camel@v3.sk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: "Eric W. Biederman" To: linux-fsdevel@vger.kernel.org Return-path: Received: from shell.v3.sk ([92.60.52.57]:42184 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbbHMICa (ORCPT ); Thu, 13 Aug 2015 04:02:30 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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