Non priviledged users could not write to /dev/null before. Checked the correct permissions by looking at Ubuntu/Debian and LFS. The permissions are maybe overwritten by udev, but on targets without udev but static dev tree, this would prevent non-root users to access these devices.
Signed-off-by: Alexander Dahl <p...@lespocky.de> --- rules/rootfs.make | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/rootfs.make b/rules/rootfs.make index 4ba33d1..1f9a0f0 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -38,9 +38,9 @@ ifdef PTXCONF_ROOTFS_DEV @$(call install_copy, rootfs, 0, 0, 0755, /dev) endif ifdef PTXCONF_ROOTFS_DEV_INITIAL - @$(call install_node, rootfs, 0, 0, 0644, c, 1, 3, /dev/null) - @$(call install_node, rootfs, 0, 0, 0644, c, 1, 5, /dev/zero) - @$(call install_node, rootfs, 0, 0, 0600, c, 5, 1, /dev/console) + @$(call install_node, rootfs, 0, 0, 0666, c, 1, 3, /dev/null) + @$(call install_node, rootfs, 0, 0, 0666, c, 1, 5, /dev/zero) + @$(call install_node, rootfs, 0, 0, 0622, c, 5, 1, /dev/console) endif ifdef PTXCONF_ROOTFS_HOME @$(call install_copy, rootfs, 0, 0, 2775, /home) -- 1.7.2.5 -- ptxdist mailing list ptxdist@pengutronix.de