xref: /aosp_15_r20/external/selinux/libsepol/tests/policies/test-deps/module.conf (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1module my_module 1.0;
2
3require {
4	bool secure_mode;
5	type system_t, sysadm_t, file_t;
6	attribute domain;
7	role system_r;
8	class file {read write};
9
10}
11
12type new_t, domain;
13role system_r types new_t;
14
15allow system_t file_t : file { read write };
16
17if (secure_mode)
18{
19	allow sysadm_t file_t : file { read write };
20}
21