-
-
Save colby/851522525b8f67d9afc729d61fda085c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@web ~]$ cat httpd_copious.te | |
module httpd_copious 1.0; | |
require { | |
type httpd_t; | |
type default_t; | |
type hugetlbfs_t; | |
class file { write getattr }; | |
class capability2 block_suspend; | |
} | |
#============= httpd_t ============== | |
allow httpd_t default_t:file getattr; | |
allow httpd_t hugetlbfs_t:file write; | |
allow httpd_t self:capability2 block_suspend; | |
[vagrant@web ~]$ sudo checkmodule -M -m -o httpd_copious.mod httpd_copious.te | |
[vagrant@web ~]$ sudo semodule_package -m httpd_copious.mod -o httpd_copious.pp | |
[vagrant@web ~]$ sudo semodule -i httpd_copious.pp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment