mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
![]() The variable used to store the file descriptor for the --file ended up being declared twice, resulting in the autoclose attribute attached to the first declaration being removed by the shadowed second declaration. Fix this by converting the second declaration to just be an assignment, as was intended. strace output before: [...] ) = 1925 close(1) = 0 exit_group(0) = ? +++ exited with 0 +++ strace output after removing shadow declaration: ) = 1925 close(1) = 0 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++ (File descriptor 3 is what is returned by the open() call on the --file argument.) Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/804 |
||
---|---|---|
.. | ||
po | ||
aa-enabled.pod | ||
aa-exec.pod | ||
aa-features-abi.pod | ||
aa-status.pod | ||
aa_enabled.c | ||
aa_exec.c | ||
aa_features_abi.c | ||
aa_status.c | ||
cJSON.c | ||
cJSON.h | ||
Makefile |