cregit-Linux how code gets into the kernel

Release 4.12 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>
#include <linux/kexec.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);

#ifdef CONFIG_IMA_KEXEC
extern void ima_add_kexec_buffer(struct kimage *image);
#endif

#else

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

Contributors

PersonTokensPropCommitsCommitProp
Mimi 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 Zohar1885.71%375.00%
Dmitry Kasatkin314.29%125.00%
Total21100.00%4100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Mimi 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 Zohar19100.00%2100.00%
Total19100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Mimi 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 Zohar26100.00%1100.00%
Total26100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar13100.00%1100.00%
Total13100.00%1100.00%

#endif /* CONFIG_IMA */ #ifndef CONFIG_IMA_KEXEC struct kimage;
static inline void ima_add_kexec_buffer(struct kimage *image) {}

Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar11100.00%1100.00%
Total11100.00%1100.00%

#endif #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 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 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 Zohar20100.00%1100.00%
Total20100.00%1100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Mimi Zohar39197.99%1285.71%
Dmitry Kasatkin61.50%17.14%
Paul Bolle20.50%17.14%
Total399100.00%14100.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.