Skip to content

Instantly share code, notes, and snippets.

@cjeanner
Last active October 16, 2018 17:37
Show Gist options
  • Save cjeanner/2f4963f798e00f821d5aecb822f5d9c7 to your computer and use it in GitHub Desktop.
Save cjeanner/2f4963f798e00f821d5aecb822f5d9c7 to your computer and use it in GitHub Desktop.
selinux for podman and tempest
module tmp 1.0;
require {
type svirt_tcg_t;
type container_share_t;
type container_runtime_t;
class process sigchld;
class file { entrypoint execute getattr open read };
class dir read;
class lnk_file read;
}
#============= svirt_tcg_t ==============
allow svirt_tcg_t container_runtime_t:process sigchld;
allow svirt_tcg_t container_share_t:file { execute getattr read entrypoint open };
allow svirt_tcg_t container_share_t:lnk_file read;
allow svirt_tcg_t container_share_t:dir read;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment