Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / include / linux / lsm_hooks.h
index 98a5e26..fb7f319 100644 (file)
  *     Returns 0 if @name and @value have been successfully set,
  *     -EOPNOTSUPP if no security attribute is needed, or
  *     -ENOMEM on memory allocation failure.
+ * @inode_init_security_anon:
+ *      Set up the incore security field for the new anonymous inode
+ *      and return whether the inode creation is permitted by the security
+ *      module or not.
+ *      @inode contains the inode structure
+ *      @name name of the anonymous inode class
+ *      @context_inode optional related inode
+ *     Returns 0 on success, -EACCES if the security module denies the
+ *     creation of this inode, or another -errno upon other errors.
  * @inode_create:
  *     Check permission to create a regular file.
  *     @dir contains inode structure of the parent of the new file.