Release 4.12 include/linux/ima.h
/*
* 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
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
static inline int ima_file_check(struct file *file, int mask, int opened)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 18 | 85.71% | 3 | 75.00% |
Dmitry Kasatkin | 3 | 14.29% | 1 | 25.00% |
Total | 21 | 100.00% | 4 | 100.00% |
static inline void ima_file_free(struct file *file)
{
return;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
static inline int ima_file_mmap(struct file *file, unsigned long prot)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 19 | 100.00% | 2 | 100.00% |
Total | 19 | 100.00% | 2 | 100.00% |
static inline int ima_read_file(struct file *file, enum kernel_read_file_id id)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
static inline void ima_post_path_mknod(struct dentry *dentry)
{
return;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_IMA */
#ifndef CONFIG_IMA_KEXEC
struct kimage;
static inline void ima_add_kexec_buffer(struct kimage *image)
{}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 28 | 100.00% | 1 | 100.00% |
Total | 28 | 100.00% | 1 | 100.00% |
static inline int ima_inode_removexattr(struct dentry *dentry,
const char *xattr_name)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_IMA_APPRAISE */
#endif /* _LINUX_IMA_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mimi Zohar | 391 | 97.99% | 12 | 85.71% |
Dmitry Kasatkin | 6 | 1.50% | 1 | 7.14% |
Paul Bolle | 2 | 0.50% | 1 | 7.14% |
Total | 399 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.