From e02d5dd9b3143b2e72d2c71e914d7bd96a47bf7b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 17 Nov 2014 13:35:58 +0100 Subject: Ensure security of default user environment --- cpukit/libcsupport/src/base_fs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/libcsupport/src/base_fs.c') diff --git a/cpukit/libcsupport/src/base_fs.c b/cpukit/libcsupport/src/base_fs.c index 5a0e67b158..16fa9b8a88 100644 --- a/cpukit/libcsupport/src/base_fs.c +++ b/cpukit/libcsupport/src/base_fs.c @@ -49,12 +49,9 @@ void rtems_filesystem_initialize( void ) * Traditionally RTEMS devices are under "/dev" so install this directory. * * If the mkdir() fails, we can't print anything so just fatal error. - * - * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually - * created that way by the IMFS. */ - rv = mkdir( "/dev", 0777); + rv = mkdir( "/dev", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ); if ( rv != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); -- cgit v1.2.3