diff options
-rw-r--r-- | src/firejail/landlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c index fcbe895f7..64d10b914 100644 --- a/src/firejail/landlock.c +++ b/src/firejail/landlock.c | |||
@@ -100,12 +100,12 @@ static int ll_create_full_ruleset(void) { | |||
100 | LANDLOCK_ACCESS_FS_REMOVE_FILE | | 100 | LANDLOCK_ACCESS_FS_REMOVE_FILE | |
101 | LANDLOCK_ACCESS_FS_WRITE_FILE; | 101 | LANDLOCK_ACCESS_FS_WRITE_FILE; |
102 | 102 | ||
103 | ll_ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0); | 103 | int ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0); |
104 | if (ll_ruleset_fd < 0) { | 104 | if (ruleset_fd < 0) { |
105 | fprintf(stderr, "Error: failed to create a Landlock ruleset: %s\n", | 105 | fprintf(stderr, "Error: failed to create a Landlock ruleset: %s\n", |
106 | strerror(errno)); | 106 | strerror(errno)); |
107 | } | 107 | } |
108 | return ll_ruleset_fd; | 108 | return ruleset_fd; |
109 | } | 109 | } |
110 | 110 | ||
111 | int ll_read(const char *allowed_path) { | 111 | int ll_read(const char *allowed_path) { |