diff options
| author | Mickaël Salaün <[email protected]> | 2025-05-28 14:44:25 +0000 |
|---|---|---|
| committer | Mickaël Salaün <[email protected]> | 2025-06-19 11:55:38 +0000 |
| commit | 94a7ce26428d3a7ceb46c503ed726160578b9fcc (patch) | |
| tree | ea9e77d402670b68f4e975f465b2caf639e4532a /security/selinux/hooks.c | |
| parent | Linux 6.16-rc2 (diff) | |
| download | kernel-94a7ce26428d3a7ceb46c503ed726160578b9fcc.tar.gz kernel-94a7ce26428d3a7ceb46c503ed726160578b9fcc.zip | |
selftests/landlock: Fix readlink check
The audit_init_filter_exe() helper incorrectly checks the readlink(2)
error because an unsigned integer is used to store the result. Use a
signed integer for this check.
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Fixes: 6a500b22971c ("selftests/landlock: Add tests for audit flags and domain IDs")
Reviewed-by: Günther Noack <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
