diff options
-rw-r--r-- | src/firejail/landlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c index bb8b1d364..ce222624b 100644 --- a/src/firejail/landlock.c +++ b/src/firejail/landlock.c | |||
@@ -83,7 +83,7 @@ out: | |||
83 | } | 83 | } |
84 | 84 | ||
85 | static int ll_create_full_ruleset(void) { | 85 | static int ll_create_full_ruleset(void) { |
86 | struct landlock_ruleset_attr attr; | 86 | struct landlock_ruleset_attr attr = {0}; |
87 | attr.handled_access_fs = | 87 | attr.handled_access_fs = |
88 | LANDLOCK_ACCESS_FS_EXECUTE | | 88 | LANDLOCK_ACCESS_FS_EXECUTE | |
89 | LANDLOCK_ACCESS_FS_MAKE_BLOCK | | 89 | LANDLOCK_ACCESS_FS_MAKE_BLOCK | |
@@ -133,7 +133,7 @@ static void _ll_fs(const char *allowed_path, const __u64 allowed_access, | |||
133 | return; | 133 | return; |
134 | } | 134 | } |
135 | 135 | ||
136 | struct landlock_path_beneath_attr target; | 136 | struct landlock_path_beneath_attr target = {0}; |
137 | target.parent_fd = allowed_fd; | 137 | target.parent_fd = allowed_fd; |
138 | target.allowed_access = allowed_access; | 138 | target.allowed_access = allowed_access; |
139 | int error = landlock_add_rule(ll_ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, | 139 | int error = landlock_add_rule(ll_ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, |