4b74ff6678
The playbook includes Tier1 level test cases that have been tested in the following contexts and is passing reliably on Classic. Test logs are stored in the Artifacts directory. The following steps are used to execute the tests using the standard test interface: Classic sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS="" TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags classic tests.yml It's based on https://src.fedoraproject.org/rpms/policycoreutils/pull-request/1 from Merlin Mathesius <merlinm@redhat.com>
20 lines
297 B
Plaintext
20 lines
297 B
Plaintext
policy_module(testpolicy, 1.0)
|
|
|
|
require {
|
|
attribute domain;
|
|
type fs_t;
|
|
}
|
|
|
|
type correct_t;
|
|
files_type(correct_t)
|
|
type incorrect_t;
|
|
files_type(incorrect_t)
|
|
type customizable_t;
|
|
files_type(customizable_t)
|
|
|
|
|
|
#allow domain correct_t:dir relabelto;
|
|
#allow correct_t fs_t:filesystem associate;
|
|
|
|
|