2
0
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:
John Johansen
2010-02-12 13:44:00 -08:00
parent e0ca522633
commit 94b2a345f2

View File

@@ -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;