Blame view
include/linux/ima.h
984 Bytes
6146f0d5e integrity: IMA hooks |
1 2 3 4 5 6 7 8 |
/* * 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. */ |
6146f0d5e integrity: IMA hooks |
9 10 |
#ifndef _LINUX_IMA_H #define _LINUX_IMA_H |
ed850a52a integrity: shmem ... |
11 12 |
#include <linux/fs.h> struct linux_binprm; |
3323eec92 integrity: IMA as... |
13 14 |
#ifdef CONFIG_IMA extern int ima_bprm_check(struct linux_binprm *bprm); |
9bbb6cad0 ima: rename ima_p... |
15 |
extern int ima_file_check(struct file *file, int mask); |
3323eec92 integrity: IMA as... |
16 17 18 19 |
extern void ima_file_free(struct file *file); extern int ima_file_mmap(struct file *file, unsigned long prot); #else |
6146f0d5e integrity: IMA hooks |
20 21 22 23 |
static inline int ima_bprm_check(struct linux_binprm *bprm) { return 0; } |
9bbb6cad0 ima: rename ima_p... |
24 |
static inline int ima_file_check(struct file *file, int mask) |
6146f0d5e integrity: IMA hooks |
25 26 27 28 29 30 31 32 33 34 35 36 37 |
{ return 0; } static inline void ima_file_free(struct file *file) { return; } static inline int ima_file_mmap(struct file *file, unsigned long prot) { return 0; } |
3323eec92 integrity: IMA as... |
38 |
#endif /* CONFIG_IMA_H */ |
6146f0d5e integrity: IMA hooks |
39 |
#endif /* _LINUX_IMA_H */ |