mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-22 12:33:59 +08:00
Landlock updates for v5.18-rc1
These two commits contain a minor fix for the sandboxer sample, and a Landlock ruleset FD name standardization. -----BEGIN PGP SIGNATURE----- iIUEABYIAC4WIQSVyBthFV4iTW/VU1/l49DojIL20gUCYjhf+RAcbWljQGRpZ2lr b2QubmV0AAoJEOXj0OiMgvbSNoEA91sBZxBVkYz7GuGY5ueMZbeAAiFaKUrbFNiW trm96+8A/2+5eZLUS0bCwZoc67wK+x/Zi1VlOxyTtrroC9JRkXkM =M/wb -----END PGP SIGNATURE----- Merge tag 'landlock-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux Pull landlock updates from Mickaël Salaün: "These two commits contain a minor fix for the sandboxer sample, and a Landlock ruleset FD name standardization" * tag 'landlock-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: landlock: Use square brackets around "landlock-ruleset" samples/landlock: Fix path_list memory leak
This commit is contained in:
commit
29cbaa3e60
@ -134,6 +134,7 @@ static int populate_ruleset(
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
out_free_name:
|
out_free_name:
|
||||||
|
free(path_list);
|
||||||
free(env_path_name);
|
free(env_path_name);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ SYSCALL_DEFINE3(landlock_create_ruleset,
|
|||||||
return PTR_ERR(ruleset);
|
return PTR_ERR(ruleset);
|
||||||
|
|
||||||
/* Creates anonymous FD referring to the 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);
|
ruleset, O_RDWR | O_CLOEXEC);
|
||||||
if (ruleset_fd < 0)
|
if (ruleset_fd < 0)
|
||||||
landlock_put_ruleset(ruleset);
|
landlock_put_ruleset(ruleset);
|
||||||
|
Loading…
Reference in New Issue
Block a user