Skip to content

Commit

Permalink
selinux: Allow ceph to setsched
Browse files Browse the repository at this point in the history
In several places, such as common/numa.cc we call sched_setaffinity
which requires this permission.

Fixes: https://tracker.ceph.com/issues/44196

Signed-off-by: Brad Hubbard <[email protected]>
  • Loading branch information
badone committed Feb 19, 2020
1 parent 138f407 commit 43103e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selinux/ceph.te
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ allow ceph_t configfs_t:lnk_file { create getattr read unlink };
allow ceph_t random_device_t:chr_file getattr;
allow ceph_t urandom_device_t:chr_file getattr;
allow ceph_t self:process setpgid;
allow ceph_t self:process setsched;
allow ceph_t var_run_t:dir { write create add_name };
allow ceph_t var_run_t:file { read write create open getattr };
allow ceph_t init_var_run_t:file getattr;
Expand Down

0 comments on commit 43103e0

Please sign in to comment.