mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Fix -S flag so the profile can be dumped to stdout again
The changes to the loader permission logic broke the -S flag, so update the test so that we can dump out the profile again.
This commit is contained in:
@@ -903,7 +903,7 @@ int sd_serialize_codomain(int option, struct codomain *cod)
|
||||
}
|
||||
|
||||
size = work_area->pos - work_area->buffer;
|
||||
if (kernel_load) {
|
||||
if (kernel_load || option == OPTION_STDOUT) {
|
||||
wsize = write(fd, work_area->buffer, size);
|
||||
if (wsize < 0) {
|
||||
error = -errno;
|
||||
|
Reference in New Issue
Block a user