There are old kernels (2.6.32-x) with DEVTMPFS support, but without support right permissions assignment for /dev/null, /dev/zero, etc. When devtmpfs created /dev/null, /dev/zero, it made them inaccessible to unprivileged accounts. In the same time udev doesn't take care anymore of /dev/{null,zero...} permissions since that commit (http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=378f2e074e38490103f999173bf717a5394170f8). Since Gentoo is not going to prevent using udev with older kernels than 2.6.39, I think this will be right to include such udev rule (taken from https://bbs.archlinux.org/viewtopic.php?id=142816): > SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666" into udev ebuild, and install it for old kernels: > kernel_is eq 2 6 32 && doins "${FILESDIR}"/50-fix-permission.rules Reproducible: Always
Created attachment 339092 [details] udev rule
Created attachment 339094 [details, diff] simple patch for udev
It looks like it would be safe to install that rule unconditionally.
> It looks like it would be safe to install that rule unconditionally. Yes, it can be done in such way too. It will do the trick for old kernels, and will be harmless for modern ones, since correct permissions will be just reassigned by udev.
added to udev-197-r9 (i'll revbump later) and 9999
in fact, move to eudev maintainers since it makes sense to keep 40-gentoo.rules in sync
(In reply to comment #6) > in fact, move to eudev maintainers since it makes sense to keep > 40-gentoo.rules in sync Thanks Samuli, we're in sync.