cregit-Linux how code gets into the kernel

Release 4.7 include/linux/ima.h

Directory: include/linux
/*
 * Copyright (C) 2008 IBM Corporation
 * Author: Mimi Zohar <zohar@us.ibm.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2 of the License.
 */

#ifndef _LINUX_IMA_H

#define _LINUX_IMA_H

#include <linux/fs.h>
struct linux_binprm;

#ifdef CONFIG_IMA
extern int ima_bprm_check(struct linux_binprm *bprm);
extern int ima_file_check(struct file *file, int mask, int opened);
extern void ima_file_free(struct file *file);
extern int ima_file_mmap(struct file *file, unsigned long prot);
extern int ima_read_file(struct file *file, enum kernel_read_file_id id);
extern int ima_post_read_file(struct file *file, void *buf, loff_t size,
			      enum kernel_read_file_id id);
extern void ima_post_path_mknod(struct dentry *dentry);

#else

static inline int ima_bprm_check(struct linux_binprm *bprm) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar15100.00%1100.00%
Total15100.00%1100.00%


static inline int ima_file_check(struct file *file, int mask, int opened) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar1885.71%375.00%
dmitry kasatkindmitry kasatkin314.29%125.00%
Total21100.00%4100.00%


static inline void ima_file_free(struct file *file) { return; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar13100.00%1100.00%
Total13100.00%1100.00%


static inline int ima_file_mmap(struct file *file, unsigned long prot) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar19100.00%1100.00%
Total19100.00%1100.00%


static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar19100.00%1100.00%
Total19100.00%1100.00%


static inline int ima_post_read_file(struct file *file, void *buf, loff_t size, enum kernel_read_file_id id) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar26100.00%1100.00%
Total26100.00%1100.00%


static inline void ima_post_path_mknod(struct dentry *dentry) { return; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar13100.00%1100.00%
Total13100.00%1100.00%

#endif /* CONFIG_IMA */ #ifdef CONFIG_IMA_APPRAISE extern void ima_inode_post_setattr(struct dentry *dentry); extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len); extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name); #else
static inline void ima_inode_post_setattr(struct dentry *dentry) { return; }

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar13100.00%1100.00%
Total13100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar28100.00%1100.00%
Total28100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar20100.00%1100.00%
Total20100.00%1100.00%

#endif /* CONFIG_IMA_APPRAISE */ #endif /* _LINUX_IMA_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
mimi zoharmimi zohar35497.79%1184.62%
dmitry kasatkindmitry kasatkin61.66%17.69%
paul bollepaul bolle20.55%17.69%
Total362100.00%13100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}