mirror of https://github.com/OpenIPC/firmware.git
18 lines
618 B
Diff
18 lines
618 B
Diff
diff -drupN a/include/linux/fivm.h b/include/linux/fivm.h
|
|
--- a/include/linux/fivm.h 1970-01-01 03:00:00.000000000 +0300
|
|
+++ b/include/linux/fivm.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -0,0 +1,13 @@
|
|
+#ifndef _LINUX_FIVM_H
|
|
+#define _LINUX_FIVM_H
|
|
+
|
|
+#include <linux/fs.h>
|
|
+#define CONFIG_FILE_INTEGRITY
|
|
+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*/
|