aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/firejail.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/firejail.h')
-rw-r--r--src/firejail/firejail.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/firejail/firejail.h b/src/firejail/firejail.h
index 43325de62..f9f4cb473 100644
--- a/src/firejail/firejail.h
+++ b/src/firejail/firejail.h
@@ -152,6 +152,12 @@ typedef struct profile_entry_t {
152 152
153typedef struct landlock_entry_t { 153typedef struct landlock_entry_t {
154 struct landlock_entry_t *next; 154 struct landlock_entry_t *next;
155#define LL_READ 0
156#define LL_WRITE 1
157#define LL_SPECIAL 2
158#define LL_EXEC 3
159#define LL_MAX 4
160 int type;
155 char *data; 161 char *data;
156} LandlockEntry; 162} LandlockEntry;
157 163
@@ -968,7 +974,7 @@ int ll_special(const char *allowed_path);
968int ll_exec(const char *allowed_path); 974int ll_exec(const char *allowed_path);
969int ll_basic_system(void); 975int ll_basic_system(void);
970int ll_restrict(__u32 flags); 976int ll_restrict(__u32 flags);
971void ll_add_profile(const char *data); 977void ll_add_profile(int type, const char *data);
972#else 978#else
973static inline int ll_get_fd(void) { return -1; } 979static inline int ll_get_fd(void) { return -1; }
974static inline int ll_read(...) { return 0; } 980static inline int ll_read(...) { return 0; }