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

login
register
mail settings
Submitter Andy Whitcroft
Date Jan. 26, 2010, 4:44 p.m.
Message ID <1264524254-23906-3-git-send-email-apw@canonical.com>
Download mbox | patch
Permalink /patch/43717/
State Accepted
Delegated to: Andy Whitcroft
Headers show

Comments

Andy Whitcroft - Jan. 26, 2010, 4:44 p.m.
From: Kay Sievers <kay.sievers@vrfy.org>

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

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

Patch

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);