]> xenbits.xensource.com Git - xen.git/commitdiff
flask/policy: don't audit commandline / build_id queries
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 6 May 2016 10:03:28 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 May 2016 10:03:28 +0000 (12:03 +0200)
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/flask/policy/policy/modules/xen/xen.te

index bef33b03c338b53d289ba19be503a653677fbff5..0b1c955b4f676f7fa0315b9f0508cbc313308be8 100644 (file)
@@ -155,6 +155,15 @@ allow domain_type xen_t:version {
     xen_changeset xen_pagesize xen_guest_handle
 };
 
+# These queries don't need auditing when denied.  They can be
+# encountered in normal operation by xl or by reading sysfs files in
+# Linux, so without this they will show up in the logs.  Since these
+# operations return valid responses (like "denied"), hiding the denials
+# should not break anything.
+dontaudit domain_type xen_t:version {
+    xen_commandline xen_build_id
+};
+
 ###############################################################################
 #
 # Domain creation