write_klog also requires write permission to the directory.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
diff --git a/te_macros b/te_macros
index 283c4a3..9313938 100644
--- a/te_macros
+++ b/te_macros
@@ -303,7 +303,7 @@
define(`write_klog', `
type_transition $1 device:chr_file klog_device "__kmsg__";
allow $1 klog_device:chr_file { create open write unlink };
-allow $1 device:dir { add_name remove_name };
+allow $1 device:dir { write add_name remove_name };
')
#####################################