On Tue, Dec 17, 2019 at 4:51 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > On Thu, Nov 28, 2019 at 04:59:36PM +0100, Miklos Szeredi wrote: > > Whiteouts are special, but unlike real device nodes they should not require > > privileges to create. > > More detailed analysis, please. Maybe I'm missing something obvious, > but I don't see off-hand why it's safe. The general concern with device nodes is that opening them can have side effects. The kernel already avoids zero major, so opening will result in ENODEV, but the patch also makes sure that registering a device with 0/0 number is forbidden (fs/char_dev.c). Thanks, Miklos