diff options
Diffstat (limited to 'include/linux/lsm_hooks.h')
| -rw-r--r-- | include/linux/lsm_hooks.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index a9b8ff578b6b..0dd5bda719e6 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h | |||
| @@ -445,6 +445,15 @@ | |||
| 445 | * to abort the copy up. Note that the caller is responsible for reading | 445 | * to abort the copy up. Note that the caller is responsible for reading |
| 446 | * and writing the xattrs as this hook is merely a filter. | 446 | * and writing the xattrs as this hook is merely a filter. |
| 447 | * | 447 | * |
| 448 | * Security hooks for kernfs node operations | ||
| 449 | * | ||
| 450 | * @kernfs_init_security | ||
| 451 | * Initialize the security context of a newly created kernfs node based | ||
| 452 | * on its own and its parent's attributes. | ||
| 453 | * | ||
| 454 | * @kn_dir the parent kernfs node | ||
| 455 | * @kn the new child kernfs node | ||
| 456 | * | ||
| 448 | * Security hooks for file operations | 457 | * Security hooks for file operations |
| 449 | * | 458 | * |
| 450 | * @file_permission: | 459 | * @file_permission: |
| @@ -1578,6 +1587,9 @@ union security_list_options { | |||
| 1578 | int (*inode_copy_up)(struct dentry *src, struct cred **new); | 1587 | int (*inode_copy_up)(struct dentry *src, struct cred **new); |
| 1579 | int (*inode_copy_up_xattr)(const char *name); | 1588 | int (*inode_copy_up_xattr)(const char *name); |
| 1580 | 1589 | ||
| 1590 | int (*kernfs_init_security)(struct kernfs_node *kn_dir, | ||
| 1591 | struct kernfs_node *kn); | ||
| 1592 | |||
| 1581 | int (*file_permission)(struct file *file, int mask); | 1593 | int (*file_permission)(struct file *file, int mask); |
| 1582 | int (*file_alloc_security)(struct file *file); | 1594 | int (*file_alloc_security)(struct file *file); |
| 1583 | void (*file_free_security)(struct file *file); | 1595 | void (*file_free_security)(struct file *file); |
| @@ -1879,6 +1891,7 @@ struct security_hook_heads { | |||
| 1879 | struct hlist_head inode_getsecid; | 1891 | struct hlist_head inode_getsecid; |
| 1880 | struct hlist_head inode_copy_up; | 1892 | struct hlist_head inode_copy_up; |
| 1881 | struct hlist_head inode_copy_up_xattr; | 1893 | struct hlist_head inode_copy_up_xattr; |
| 1894 | struct hlist_head kernfs_init_security; | ||
| 1882 | struct hlist_head file_permission; | 1895 | struct hlist_head file_permission; |
| 1883 | struct hlist_head file_alloc_security; | 1896 | struct hlist_head file_alloc_security; |
| 1884 | struct hlist_head file_free_security; | 1897 | struct hlist_head file_free_security; |
