summaryrefslogtreecommitdiffstats
path: root/selinux (follow)
Commit message (Collapse)AuthorAgeFilesLines
* selinux: Allow getattr on lnk sysfs filesBoris Ranto2017-09-211-1/+1
| | | | | | | | 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 <branto@redhat.com>
* selinux: Allow nvme devicesBoris Ranto2017-08-141-1/+5
| | | | | | | | 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>
* selinux: Allow read on var_run_tBoris Ranto2017-06-061-1/+1
| | | | | Fixes: http://tracker.ceph.com/issues/16674 Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: clip the ceph context to ceph-mgr alsoKefu Chai2017-06-021-0/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* selinux: Allow ceph daemons to read net statsBoris Ranto2017-03-131-0/+1
| | | | | | Fixes: http://tracker.ceph.com/issues/19254 Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Allow ceph to manage tmp filesBoris Ranto2016-09-291-0/+1
| | | | | | | | | | Two new denials showed up in testing that relate to ceph trying to manage (rename and unlink) tmp files. This commit allows ceph to manage the files. Fixes: http://tracker.ceph.com/issues/17436 Signed-off-by: Boris Ranto <branto@redhat.com>
* remove autotoolsSage Weil2016-09-072-23/+0
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* selinux: allow read /proc/<pid>/cmdlineKefu Chai2016-07-191-0/+2
| | | | | | | we read /proc/<pid>/cmdline to figure out who is terminating us. Fixes: http://tracker.ceph.com/issues/16675 Signed-off-by: Kefu Chai <kchai@redhat.com>
* selinux: allow chown for self and setattr for /var/run/cephBoris Ranto2016-06-131-2/+2
| | | | | | Fixes: http://tracker.ceph.com/issues/16126 Signed-off-by: Boris Ranto <branto@redhat.com>
* cmake: enable selinux supportKefu Chai2016-05-161-0/+11
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* automake: use :: rule for adding targetKefu Chai2016-05-031-2/+2
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* selinux: Allow to manage locksBoris Ranto2016-03-081-0/+1
| | | | | | | | | We currently create the ceph lock by an unconfined process (ceph-disk). Unconfined processes inherit the context from the parrent directory. This allows ceph daemons to access the files with context inherrited from the parent directory (/var/lock | /run/lock). Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: allow dac_override capabilityBoris Ranto2016-03-081-1/+1
| | | | | Fixes: #14870 Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Allow log files to be located in /var/log/radosgwBoris Ranto2016-02-112-1/+2
| | | | | | | | | | | | | | | | We do suggest users to put their logs in /var/log/radosgw in the documentation at times. We should also label that directory with ceph_var_log_t so that ceph daemons can also write there. The commit also updates the man page for this policy. This man page is automatically generated by * sepolicy manpage -p . -d ceph_t and have not been reloaded in a while. Hence, it contains few more changes than the new radosgw directory. Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Fix man page locationBoris Ranto2015-10-061-370/+0
| | | | | | | | | | The SELinux man page was previously located in two places and the man page that was supposed to be updated when rgw selinux changes were proposed did not get updated properly. Fixing this by moving selinux/ceph_selinux.8 to man/ceph_selinux.8. Also, populate EXTRA_DIST with ceph_selinux.8. Signed-off-by: Boris Ranto <branto@redhat.com>
* radosgw: log to /var/log/ceph instead of /var/log/radosgwSage Weil2015-09-162-5/+2
| | | | | | This is simpler. Signed-off-by: Sage Weil <sage@redhat.com>
* selinux: Update policy for radosgwBoris Ranto2015-09-113-13/+61
| | | | | | | The current SELinux policy does not cover radosgw daemon. This patch introduces the SELinux support for radosgw daemon (civetweb only). Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Add .gitignore fileBoris Ranto2015-08-051-0/+3
| | | | | | | The gitbuilders release script needs this. Otherwise, the ceph-release build will fail because there were some untracked files. Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Update the SELinux policy rulesBoris Ranto2015-08-051-0/+29
| | | | | | | Few new denials were found while testing the policy. Updating the policy rules to refelct that. Signed-off-by: Boris Ranto <branto@redhat.com>
* SELinux Makefile can't work in parallelBoris Ranto2015-08-051-1/+1
| | | | | | | | We need to force single-core compilation of SELinux policy files in the sub-make target as SELinux Makefile does not work properly when run in parallel mode. Signed-off-by: Boris Ranto <branto@redhat.com>
* selinux: Allow setuid and setgid to ceph-mon and ceph-osdBoris Ranto2015-08-051-0/+1
| | | | Signed-off-by: Boris Ranto <branto@redhat.com>
* Update selinux policy (after local test).Milan Broz2015-08-052-18/+15
| | | | | | Changes enerated with ceph-test package. Signed-off-by: Milan Broz <mbroz@redhat.com>
* Add initial SELinux supportBoris Ranto2015-08-055-0/+709
This patch modifies the build system and spec file to provide a support for SELinux enforcing in an opt-in matter via ceph-selinux package. Signed-off-by: Boris Ranto <branto@redhat.com>