]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/selinux: another pcp whitelist 853/head
authorSage Weil <sage@redhat.com>
Tue, 3 May 2016 03:08:40 +0000 (23:08 -0400)
committerSage Weil <sage@redhat.com>
Tue, 3 May 2016 03:08:40 +0000 (23:08 -0400)
SELinux denials found on ubuntu@smithi027.front.sepia.ceph.com: ['type=AVC msg=audit(1462234212.274:85266): avc: denied { read } for pid=1984 comm="pmcd" name="pmlogger_daily.pid" dev="tmpfs" ino=1474542 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:cron_var_run_t:s0 tclass=file']

Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/task/selinux.py

index bc1f58cb88e99e01f617cf3d5ad2900142b4c5cb..f540fea14922a23c266c0ad9263048155ea3ce60 100644 (file)
@@ -115,6 +115,7 @@ class SELinux(Task):
             'name="cephtest"',
             'scontext=system_u:system_r:nrpe_t:s0',
             'scontext=system_u:system_r:pcp_pmlogger_t',
+            'scontext=system_u:system_r:pcp_pmcd_t:s0',
         ]
         se_whitelist = self.config.get('whitelist', [])
         if se_whitelist: