H3-BSP4-4-linux/include/linux/fivm.h
2017-12-01 01:00:54 +08:00

16 lines
442 B
C

#ifndef _LINUX_FIVM_H
#define _LINUX_FIVM_H
#include <linux/fs.h>
#ifndef CONFIG_FILE_INTEGRITY
#define CONFIG_FILE_INTEGRITY
#endif
struct fivm_operation {
int (*mmap_verify)(struct file *, unsigned long);
int (*open_verify)(struct file *, const char *, int);
};
extern int fivm_mmap_verify(struct file *file, unsigned long prot);
extern int fivm_open_verify(struct file *file, const char *pathname, int mask);
#endif /*_LINUX_FIVM_H*/