mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-03 07:45:50 +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;
|
size = work_area->pos - work_area->buffer;
|
||||||
if (kernel_load) {
|
if (kernel_load || option == OPTION_STDOUT) {
|
||||||
wsize = write(fd, work_area->buffer, size);
|
wsize = write(fd, work_area->buffer, size);
|
||||||
if (wsize < 0) {
|
if (wsize < 0) {
|
||||||
error = -errno;
|
error = -errno;
|
||||||
|
Reference in New Issue
Block a user