From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.17.8]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TONyN-0003uy-Lw for ptxdist@pengutronix.de; Wed, 17 Oct 2012 09:23:24 +0200 From: Alexander Dahl Date: Wed, 17 Oct 2012 09:22:52 +0200 Message-Id: <1350458572-26175-1-git-send-email-post@lespocky.de> In-Reply-To: <20121016160121.GO29469@pengutronix.de> References: <20121016160121.GO29469@pengutronix.de> Subject: [ptxdist] [PATCH] rootfs: change permissions of initial device nodes Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 --- rules/rootfs.make | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/rootfs.make b/rules/rootfs.make index 4ba33d1..602391f 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -38,8 +38,8 @@ 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, 0666, c, 1, 3, /dev/null) + @$(call install_node, rootfs, 0, 0, 0666, c, 1, 5, /dev/zero) @$(call install_node, rootfs, 0, 0, 0600, c, 5, 1, /dev/console) endif ifdef PTXCONF_ROOTFS_HOME -- 1.7.2.5 -- ptxdist mailing list ptxdist@pengutronix.de