--- fs/debugfs/inode.c.orig 2017-02-23 20:24:41.210422706 +0100 +++ fs/debugfs/inode.c 2017-02-23 20:25:04.539424346 +0100 @@ -488,12 +488,7 @@ if (unlikely(!inode)) return failed_creating(dentry); -#ifdef CONFIG_GRKERNSEC_SYSFS_RESTRICT - if (grsec_enable_sysfs_restrict) - inode->i_mode = S_IFDIR | S_IRWXU; - else -#endif - inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; + inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; inode->i_op = &simple_dir_inode_operations; inode->i_fop = &simple_dir_operations;