[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c504a8c6-73f8-b45c-6d6b-6f5a1300ab3a@metux.net>
Date: Mon, 14 Jun 2021 09:49:22 +0200
From: "Enrico Weigelt, metux IT consult" <lkml@...ux.net>
To: "Eric W. Biederman" <ebiederm@...ssion.com>,
Christian Brauner <christian.brauner@...ntu.com>
Cc: Hannes Reinecke <hare@...e.de>, gregkh@...uxfoundation.org,
containers@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: device namespaces
On 11.06.21 20:14, Eric W. Biederman wrote:
Hi,
> I favor none of the virtual devices showing up in sysfs. Maybe existing
> userspace needs the devices in sysfs, but if the solution is simply to
> skip sysfs for virtual devices that is much simpler.
Sorry for being a little bit confused, but by virtual devices you mean
things like pty's or all the other stuff we already see under
/sys/device/virtual ?
I'm yet unsure what the better way is. If we're just talking about pty's
specifically, I maybe could live with threating them like "special sort
of pipes", but I guess that would require some extra magic.
If I'm not mistaken, the whole sysfs stuff is automatically handled
device classes and bus'es - seems that tty's are also class devs.
How would you skip the virtual devices from sysfs ? Adding some filter
into sysfs that looks at the device class (or some flag within it) ?
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@...ux.net -- +49-151-27565287
Powered by blists - more mailing lists