mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
selinux: Allow nvme devices
This commit allows nvme devices which use a different label than standard block devices. Fixes: http://tracker.ceph.com/issues/19200 Signed-off-by: Boris Ranto <branto@redhat.com>
This commit is contained in:
parent
0a8ceaa3a5
commit
a8af61c8da
@ -5,11 +5,13 @@ require {
|
||||
type var_run_t;
|
||||
type random_device_t;
|
||||
type urandom_device_t;
|
||||
type setfiles_t;
|
||||
type setfiles_t;
|
||||
type nvme_device_t;
|
||||
class sock_file unlink;
|
||||
class lnk_file read;
|
||||
class dir read;
|
||||
class file { getattr read open };
|
||||
class blk_file { getattr ioctl open read write };
|
||||
}
|
||||
|
||||
########################################
|
||||
@ -86,6 +88,8 @@ logging_send_syslog_msg(ceph_t)
|
||||
|
||||
sysnet_dns_name_resolve(ceph_t)
|
||||
|
||||
allow ceph_t nvme_device_t:blk_file { getattr ioctl open read write };
|
||||
|
||||
# basis for future security review
|
||||
allow ceph_t ceph_var_run_t:sock_file { create unlink write setattr };
|
||||
allow ceph_t self:capability { sys_rawio chown };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user