[apparmor] [PATCH] add caching tests to build

Kees Cook kees at ubuntu.com
Tue Sep 14 19:47:22 BST 2010


OMG, hurt me. Re re fixed.

=== modified file 'parser/parser_interface.c'
--- parser/parser_interface.c	2010-09-14 18:03:40 +0000
+++ parser/parser_interface.c	2010-09-14 18:40:42 +0000
@@ -748,7 +748,7 @@
 		break;
 	}
 
-	if (kernel_load && fd < 0) {
+	if (fd < 0 && (kernel_load || option == OPTION_OFILE || option == OPTION_STDOUT)) {
 		PERROR(_("Unable to open %s - %s\n"), filename,
 		       strerror(errno));
 		error = -errno;


-- 
Kees Cook
Ubuntu Security Team



More information about the AppArmor mailing list