Pull security subsystem fixes from James Morris: "Two simple fixes for v5.8: - Fix hook iteration and default value for inode_copy_up_xattr (KP Singh) - Fix the key_permission LSM hook function type (Sami Tolvanen)" * tag 'fixes-v5.8-rc3-a' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: security: Fix hook iteration and default value for inode_copy_up_xattr security: fix the key_permission LSM hook function type
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -150,7 +150,7 @@ LSM_HOOK(int, 0, inode_listsecurity, struct inode *inode, char *buffer, · 149 unmodified lines | ||
| 150 | 150 | size_t buffer_size) |
| 151 | 151 | LSM_HOOK(void, LSM_RET_VOID, inode_getsecid, struct inode *inode, u32 *secid) |
| 152 | 152 | LSM_HOOK(int, 0, inode_copy_up, struct dentry *src, struct cred **new) |
| 153 | −LSM_HOOK(int, 0, inode_copy_up_xattr, const char *name) | |
| 153 | +LSM_HOOK(int, -EOPNOTSUPP, inode_copy_up_xattr, const char *name) | |
| 154 | 154 | LSM_HOOK(int, 0, kernfs_init_security, struct kernfs_node *kn_dir, |
| 155 | 155 | struct kernfs_node *kn) |
| 156 | 156 | LSM_HOOK(int, 0, file_permission, struct file *file, int mask) |
| @@ -360,7 +360,7 @@ LSM_HOOK(int, 0, key_alloc, struct key *key, const struct cred *cred, · 203 unmodified lines | ||
| 360 | 360 | unsigned long flags) |
| 361 | 361 | LSM_HOOK(void, LSM_RET_VOID, key_free, struct key *key) |
| 362 | 362 | LSM_HOOK(int, 0, key_permission, key_ref_t key_ref, const struct cred *cred, |
| 363 | − unsigned perm) | |
| 363 | + enum key_need_perm need_perm) | |
| 364 | 364 | LSM_HOOK(int, 0, key_getsecurity, struct key *key, char **_buffer) |
| 365 | 365 | #endif /* CONFIG_KEYS */ |
| 366 | 366 | |