Lines 488-499
Link Here
|
488 |
if (unlikely(!inode)) |
488 |
if (unlikely(!inode)) |
489 |
return failed_creating(dentry); |
489 |
return failed_creating(dentry); |
490 |
|
490 |
|
491 |
#ifdef CONFIG_GRKERNSEC_SYSFS_RESTRICT |
491 |
inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; |
492 |
if (grsec_enable_sysfs_restrict) |
|
|
493 |
inode->i_mode = S_IFDIR | S_IRWXU; |
494 |
else |
495 |
#endif |
496 |
inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; |
497 |
inode->i_op = &simple_dir_inode_operations; |
492 |
inode->i_op = &simple_dir_inode_operations; |
498 |
inode->i_fop = &simple_dir_operations; |
493 |
inode->i_fop = &simple_dir_operations; |
499 |
|
494 |
|