File: basic.te

package info (click to toggle)
selint 1.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,948 kB
  • sloc: ansic: 12,163; yacc: 1,149; makefile: 389; lex: 183; sh: 11
file content (23 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
policy_module(basic)

type basic_t;

type basic_exec_t;

allow basic_t basic_exec_t:file { read execute entrypoint };

macro1(basic_t)
macro2(basic_t, basic_exec_t)
macro3(basic_t basic_exec_t)
macro4(basic_t, basic_t basic_exec_t, { basic_t -basic_exec_t })

optional_policy(`
	allow basic_t foo_t:file *;
	allow basic_t foo_t:dir read;
')

optional_policy(`
	allow basic_t bar_t:file ~{ read write };
')

allow basic_t self:capability chown;