[apparmor] [PATCH] Fix bad output error message

Jamie Strandboge jamie at canonical.com
Tue Aug 17 14:13:47 BST 2010


On Tue, 2010-08-17 at 05:52 -0700, John Johansen wrote:
> 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) {
> 

ACK

-- 
Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20100817/ea396a40/attachment.pgp 


More information about the AppArmor mailing list