vfs: define kernel_read_file_id enumeration
[deliverable/linux.git] / include / linux / lsm_hooks.h
index f82631cc72483f2b5fb9fd2cfb5a5268f53eae43..2337f33913c16f21ff514c93b15864276afed7c5 100644 (file)
  *     by the kernel.
  *     @buf pointer to buffer containing the file contents.
  *     @size length of the file contents.
+ *     @id kernel read file identifier
  *     Return 0 if permission is granted.
  * @task_fix_setuid:
  *     Update the module's state after setting one or more of the user
@@ -1464,7 +1465,8 @@ union security_list_options {
        int (*kernel_fw_from_file)(struct file *file, char *buf, size_t size);
        int (*kernel_module_request)(char *kmod_name);
        int (*kernel_module_from_file)(struct file *file);
-       int (*kernel_post_read_file)(struct file *file, char *buf, loff_t size);
+       int (*kernel_post_read_file)(struct file *file, char *buf, loff_t size,
+                                    enum kernel_read_file_id id);
        int (*task_fix_setuid)(struct cred *new, const struct cred *old,
                                int flags);
        int (*task_setpgid)(struct task_struct *p, pid_t pgid);
This page took 0.024447 seconds and 5 git commands to generate.