[apparmor] [PATCH] Fix bad output error message
John Johansen
john.johansen at canonical.com
Tue Aug 17 13:52:21 BST 2010
When doing debugging/building dfa graphs, generally I use -QT however
this results in
Unable to open output file - Success
to be output to standard error.
This occurs because despite specifying kernel_load = 0, the kernel load
parts are still being done, and failing.
Index: b/parser/parser_main.c
===================================================================
--- a/parser/parser_main.c
+++ b/parser/parser_main.c
@@ -859,7 +859,8 @@
goto out;
}
- retval = load_policy(option);
+ if (kernel_load || option == OPTION_STDOUT || option == OPTION_OFILE)
+ retval = load_policy(option);
out:
if (cachetemp) {
More information about the AppArmor
mailing list