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.
Fixes: http://tracker.ceph.com/issues/21523
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit
394c26adb97cd150233fe8760355f486d03624a4)
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;