From: Boris Ranto Date: Thu, 21 Sep 2017 15:24:07 +0000 (+0200) Subject: selinux: Allow getattr on lnk sysfs files X-Git-Tag: v13.0.1~837^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=394c26adb97cd150233fe8760355f486d03624a4;p=ceph.git selinux: Allow getattr on lnk sysfs files This showed up during downstream testing for luminous. We are doing getattr on the sysfs lnk files and the current policy does not allow this. Signed-off-by: Boris Ranto --- diff --git a/selinux/ceph.te b/selinux/ceph.te index 552f73601cd9..0a9349803b12 100644 --- a/selinux/ceph.te +++ b/selinux/ceph.te @@ -106,7 +106,7 @@ files_manage_generic_locks(ceph_t) allow ceph_t sysfs_t:dir read; allow ceph_t sysfs_t:file { read getattr open }; -allow ceph_t sysfs_t:lnk_file read; +allow ceph_t sysfs_t:lnk_file { read getattr }; allow ceph_t random_device_t:chr_file getattr; allow ceph_t urandom_device_t:chr_file getattr;