diff options
author | Laura Abbott <labbott@redhat.com> | 2018-06-13 10:54:20 -0700 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2018-06-13 10:54:20 -0700 |
commit | 5f1fb0c45acc2e69b8b69ad0024294768709e4c4 (patch) | |
tree | 8dbd5303170ade6c181c001d6a72566fbf1dd61c /efi-lockdown.patch | |
parent | 9e3153d84f252c9d9123ffc4306b1434f4ddfa9a (diff) | |
download | kernel-5f1fb0c45acc2e69b8b69ad0024294768709e4c4.tar.gz kernel-5f1fb0c45acc2e69b8b69ad0024294768709e4c4.tar.xz kernel-5f1fb0c45acc2e69b8b69ad0024294768709e4c4.zip |
Linux v4.17-11782-gbe779f03d563
Diffstat (limited to 'efi-lockdown.patch')
-rw-r--r-- | efi-lockdown.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/efi-lockdown.patch b/efi-lockdown.patch index cee6ec7f5..a12721802 100644 --- a/efi-lockdown.patch +++ b/efi-lockdown.patch @@ -1737,9 +1737,9 @@ index 13b01351dd1c..4daec17b8215 100644 dentry->d_fsdata = (void *)((unsigned long)real_fops | DEBUGFS_FSDATA_IS_REAL_FOPS_BIT); @@ -515,7 +541,7 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent) - if (!parent) - parent = debugfs_mount->mnt_root; - inode->i_mode = S_IFDIR | ((d_inode(parent)->i_mode & 0770)); + return failed_creating(dentry); + + inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; - inode->i_op = &simple_dir_inode_operations; + inode->i_op = &debugfs_dir_inode_operations; inode->i_fop = &simple_dir_operations; |