Created
April 20, 2016 13:59
-
-
Save bcdonadio/ec72d0830d61bc0d7fa2e32ead45a944 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ####INICIO rsync_dhcp.te#### | |
| module rsync_dhcp 1.1; | |
| require { | |
| type rsync_t; | |
| type dhcp_etc_t; | |
| class dir { getattr search }; | |
| class file { read getattr open }; | |
| } | |
| allow rsync_t dhcp_etc_t:dir { getattr search }; | |
| allow rsync_t dhcp_etc_t:file { read getattr open }; | |
| ####FIM rsync_dhcp.te#### | |
| $ checkmodule -M -m -o rsync_dhcp.mod rsync_dhcp.te | |
| $ semodule_package -o rsync_dhcp.pp -m rsync_dhcp.mod | |
| # semodule -i rsync_dhcp.pp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment