Skip to content

Instantly share code, notes, and snippets.

@bcdonadio
Created April 20, 2016 13:59
Show Gist options
  • Select an option

  • Save bcdonadio/ec72d0830d61bc0d7fa2e32ead45a944 to your computer and use it in GitHub Desktop.

Select an option

Save bcdonadio/ec72d0830d61bc0d7fa2e32ead45a944 to your computer and use it in GitHub Desktop.
####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