Skip to content

Commit

Permalink
Merge Landlock fixes into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Salaün committed Feb 4, 2022
2 parents eea1374 + aea0b9f commit a691b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions samples/landlock/sandboxer.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ static int populate_ruleset(
ret = 0;

out_free_name:
free(path_list);
free(env_path_name);
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion security/landlock/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ SYSCALL_DEFINE3(landlock_create_ruleset,
return PTR_ERR(ruleset);

/* Creates anonymous FD referring to the ruleset. */
ruleset_fd = anon_inode_getfd("landlock-ruleset", &ruleset_fops,
ruleset_fd = anon_inode_getfd("[landlock-ruleset]", &ruleset_fops,
ruleset, O_RDWR | O_CLOEXEC);
if (ruleset_fd < 0)
landlock_put_ruleset(ruleset);
Expand Down

0 comments on commit a691b98

Please sign in to comment.