[PATCH 2/3] UBUNTU: (pre-stable) Driver-Core: devtmpfs - set root directory mode to 0755

Andy Whitcroft apw at canonical.com
Tue Jan 26 16:44:13 GMT 2010


From: Kay Sievers <kay.sievers at vrfy.org>

commit 03d673e6af6490371aaf64dfe1f84c658c48b71d upstream.
BugLink: http://bugs.launchpad.net/bugs/512370

Signed-off-by: Kay Sievers <kay.sievers at vrfy.org>
Cc: Mark Rosenstand <rosenstand at gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 drivers/base/devtmpfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index fd488ad..2c60454 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -353,7 +353,7 @@ int __init devtmpfs_init(void)
 		return err;
 	}
 
-	mnt = kern_mount(&dev_fs_type);
+	mnt = kern_mount_data(&dev_fs_type, "mode=0755");
 	if (IS_ERR(mnt)) {
 		err = PTR_ERR(mnt);
 		printk(KERN_ERR "devtmpfs: unable to create devtmpfs %i\n", err);
-- 
1.6.3.3




More information about the kernel-team mailing list