blob: b2b003df3fc2a103f807647eefdd9d256ffa531b (
plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
## <summary>Policy for getty.</summary>
########################################
## <summary>
## Execute gettys in the getty domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`getty_domtrans',`
gen_require(`
type getty_t, getty_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, getty_exec_t, getty_t)
')
########################################
## <summary>
## Inherit and use getty file descriptors.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`getty_use_fds',`
gen_require(`
type getty_t;
')
allow $1 getty_t:fd use;
')
########################################
## <summary>
## Allow process to read getty log file.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`getty_read_log',`
gen_require(`
type getty_log_t;
')
logging_search_logs($1)
allow $1 getty_log_t:file read_file_perms;
')
########################################
## <summary>
## Allow process to read getty config file.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`getty_read_config',`
gen_require(`
type getty_etc_t;
')
files_search_etc($1)
allow $1 getty_etc_t:file read_file_perms;
')
########################################
## <summary>
## Allow process to edit getty config file.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`getty_rw_config',`
gen_require(`
type getty_etc_t;
')
files_search_etc($1)
allow $1 getty_etc_t:file rw_file_perms;
')
|