Skip to content

Instantly share code, notes, and snippets.

/selinux.sls Secret

Created April 22, 2016 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/84cf8de5d5131418606f637a6b25e5e5 to your computer and use it in GitHub Desktop.
Save anonymous/84cf8de5d5131418606f637a6b25e5e5 to your computer and use it in GitHub Desktop.
share-directory-foo:
file.directory:
- name: /some/path/foo
- user: root
- group: users
- mode: 2770
share-selinux-foo:
cmd.run:
- name: chcon -t samba_share_t /some/path/foo
- unless: ls -dZ /some/foo | grep samba_share_t
- require:
- file: share-directory-foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment