File: conditionalinfoflow.conf

package info (click to toggle)
setools 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,900 kB
  • sloc: python: 20,968; makefile: 14
file content (52 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class infoflow

sid kernel

class infoflow
{
    hi_w
    hi_r
    med_r
    med_w
}

type system;
role system;
role system types system;

#################################################

type src;
type tgt;
type flow_true;
type flow_false;

type src_remain;
type tgt_remain;
type flow_remain;

bool condition false;

allow src_remain flow_remain:infoflow hi_w;
allow tgt_remain flow_remain:infoflow hi_r;

if (condition) {
    allow src flow_true:infoflow hi_w;
    allow tgt flow_true:infoflow hi_r;
    allow tgt flow_true:infoflow hi_r;

    allow src_remain flow_remain:infoflow med_w;
    allow tgt_remain flow_remain:infoflow med_r;
}
else {
    allow src flow_false:infoflow hi_w;
    allow tgt flow_false:infoflow hi_r;
}

#################################################

#users
user system roles system;

#isids
sid kernel system:system:system