Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715673 > unrolled thread

devtmpfs: regular files

Started bySami Kerola <kerolasa@iki.fi>
First post2017-08-19 17:00 +0200
Last post2017-08-19 17:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  devtmpfs: regular files Sami Kerola <kerolasa@iki.fi> - 2017-08-19 17:00 +0200

#1715673 — devtmpfs: regular files

FromSami Kerola <kerolasa@iki.fi>
Date2017-08-19 17:00 +0200
Subjectdevtmpfs: regular files
Message-ID<ugdod-2zE-9@gated-at.bofh.it>
Hi,

Is there some reason why devtmpfs allows creation of regular files? I
think it would be nice if /dev would behave same way as /proc, that
is:

$ echo example > /proc/regular-file.txt
-bash: /proc/regular-file.txt: No such file or directory

That would make users who rm /dev/null to notice something is wrong
before all space is taken by some rubbish writer. Secondly when /dev/
is used for pairing daemons with fifo this would make incorrect start
order to fail without intervention needed - no more writer creating a
file, and reader that wants to use same path for fifo being unable to
do so.

This could be a mount option. Something like nofile in spirit of nodev
but with opposite effect. My assumption is that changing default
behavior is unlikely to be approvable.

-- 
Sami Kerola
http://www.iki.fi/kerolasa/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web