summaryrefslogtreecommitdiff
path: root/run_landlock.c
diff options
context:
space:
mode:
authorB. Bergeron <[email protected]>2025-07-16 00:23:40 -0400
committerB. Bergeron <[email protected]>2025-07-16 00:23:40 -0400
commite02cfe85d6166744024af022d9e6827fd5a1b7af (patch)
treea7b69d4ce9014f31051d491af94ea05e9101bda5 /run_landlock.c
parentd0823abeebfc36813ef2371ba9afaa7e4a66294f (diff)
landlock_init: Remove useless logic
Diffstat (limited to 'run_landlock.c')
-rw-r--r--run_landlock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/run_landlock.c b/run_landlock.c
index 9df3b42..7f5394d 100644
--- a/run_landlock.c
+++ b/run_landlock.c
@@ -164,12 +164,8 @@ static int landlock_init(char *argv0, struct landlock_ruleset_attr *attr)
int ruleset;
errno = 0;
-
ruleset = syscall(SYS_landlock_create_ruleset, attr, sizeof(struct landlock_ruleset_attr), 0);
- if (ruleset != -1)
- return ruleset;
-
switch (errno) {
case 0:
return ruleset;