LWN.net Logo

Devtmpfs and permissions

Devtmpfs and permissions

Posted Sep 24, 2009 12:04 UTC (Thu) by nix (subscriber, #2304)
Parent article: Devtmpfs and permissions

The permissions of /dev/null and /dev/zero are not policy: you can't sanely change them. /dev/null has its permissions specified by POSIX (as do /dev/tty and /dev/console, which are similarly magical), and lots of critical things including the dynamic linker rely on /dev/zero in particular (thanks to mmap() of /dev/zero being one way to get anonymous memory).


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds