cregit-Linux how code gets into the kernel

Release 4.12 include/linux/evm.h

Directory: include/linux
/*
 * evm.h
 *
 * Copyright (c) 2009 IBM Corporation
 * Author: Mimi Zohar <zohar@us.ibm.com>
 */

#ifndef _LINUX_EVM_H

#define _LINUX_EVM_H

#include <linux/integrity.h>
#include <linux/xattr.h>

struct integrity_iint_cache;

#ifdef CONFIG_EVM
extern int evm_set_key(void *key, size_t keylen);
extern enum integrity_status evm_verifyxattr(struct dentry *dentry,
					     const char *xattr_name,
					     void *xattr_value,
					     size_t xattr_value_len,
					     struct integrity_iint_cache *iint);
extern int evm_inode_setattr(struct dentry *dentry, struct iattr *attr);
extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid);
extern int evm_inode_setxattr(struct dentry *dentry, const char *name,
			      const void *value, size_t size);
extern void evm_inode_post_setxattr(struct dentry *dentry,
				    const char *xattr_name,
				    const void *xattr_value,
				    size_t xattr_value_len);
extern int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name);
extern void evm_inode_post_removexattr(struct dentry *dentry,
				       const char *xattr_name);
extern int evm_inode_init_security(struct inode *inode,
				   const struct xattr *xattr_array,
				   struct xattr *evm);
#ifdef CONFIG_FS_POSIX_ACL
extern int posix_xattr_acl(const char *xattrname);
#else

static inline int posix_xattr_acl(const char *xattrname) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar15100.00%1100.00%
Total15100.00%1100.00%

#endif #else
static inline int evm_set_key(void *key, size_t keylen) { return -EOPNOTSUPP; }

Contributors

PersonTokensPropCommitsCommitProp
Dmitry Kasatkin18100.00%1100.00%
Total18100.00%1100.00%

#ifdef CONFIG_INTEGRITY
static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) { return INTEGRITY_UNKNOWN; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar2884.85%150.00%
Dmitry Kasatkin515.15%150.00%
Total33100.00%2100.00%

#endif
static inline int evm_inode_setattr(struct dentry *dentry, struct iattr *attr) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar20100.00%2100.00%
Total20100.00%2100.00%


static inline void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) { return; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar16100.00%1100.00%
Total16100.00%1100.00%


static inline int evm_inode_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar28100.00%1100.00%
Total28100.00%1100.00%


static inline void evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) { return; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar26100.00%1100.00%
Total26100.00%1100.00%


static inline int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar20100.00%1100.00%
Total20100.00%1100.00%


static inline void evm_inode_post_removexattr(struct dentry *dentry, const char *xattr_name) { return; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar18100.00%1100.00%
Total18100.00%1100.00%


static inline int evm_inode_init_security(struct inode *inode, const struct xattr *xattr_array, struct xattr *evm) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar26100.00%2100.00%
Total26100.00%2100.00%

#endif /* CONFIG_EVM */ #endif /* LINUX_EVM_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar39089.86%872.73%
Dmitry Kasatkin439.91%218.18%
Paul Bolle10.23%19.09%
Total434100.00%11100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.