diff options
Diffstat (limited to 'include/linux/evm.h')
| -rw-r--r-- | include/linux/evm.h | 49 | 
1 files changed, 49 insertions, 0 deletions
diff --git a/include/linux/evm.h b/include/linux/evm.h index aa63e0b3c0a2..7a9ee2157f69 100644 --- a/include/linux/evm.h +++ b/include/linux/evm.h @@ -35,6 +35,27 @@ extern int evm_inode_removexattr(struct user_namespace *mnt_userns,  				 struct dentry *dentry, const char *xattr_name);  extern void evm_inode_post_removexattr(struct dentry *dentry,  				       const char *xattr_name); +static inline void evm_inode_post_remove_acl(struct user_namespace *mnt_userns, +					     struct dentry *dentry, +					     const char *acl_name) +{ +	evm_inode_post_removexattr(dentry, acl_name); +} +extern int evm_inode_set_acl(struct user_namespace *mnt_userns, +			     struct dentry *dentry, const char *acl_name, +			     struct posix_acl *kacl); +static inline int evm_inode_remove_acl(struct user_namespace *mnt_userns, +				       struct dentry *dentry, +				       const char *acl_name) +{ +	return evm_inode_set_acl(mnt_userns, dentry, acl_name, NULL); +} +static inline void evm_inode_post_set_acl(struct dentry *dentry, +					  const char *acl_name, +					  struct posix_acl *kacl) +{ +	return evm_inode_post_setxattr(dentry, acl_name, NULL, 0); +}  extern int evm_inode_init_security(struct inode *inode,  				   const struct xattr *xattr_array,  				   struct xattr *evm); @@ -108,6 +129,34 @@ static inline void evm_inode_post_removexattr(struct dentry *dentry,  	return;  } +static inline void evm_inode_post_remove_acl(struct user_namespace *mnt_userns, +					     struct dentry *dentry, +					     const char *acl_name) +{ +	return; +} + +static inline int evm_inode_set_acl(struct user_namespace *mnt_userns, +				    struct dentry *dentry, const char *acl_name, +				    struct posix_acl *kacl) +{ +	return 0; +} + +static inline int evm_inode_remove_acl(struct user_namespace *mnt_userns, +				       struct dentry *dentry, +				       const char *acl_name) +{ +	return 0; +} + +static inline void evm_inode_post_set_acl(struct dentry *dentry, +					  const char *acl_name, +					  struct posix_acl *kacl) +{ +	return; +} +  static inline int evm_inode_init_security(struct inode *inode,  					  const struct xattr *xattr_array,  					  struct xattr *evm)  |