1setkey_selinux(8) SELinux Policy setkey setkey_selinux(8)
2
3
4
6 setkey_selinux - Security Enhanced Linux Policy for the setkey pro‐
7 cesses
8
10 Security-Enhanced Linux secures the setkey processes via flexible
11 mandatory access control.
12
13 The setkey processes execute with the setkey_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep setkey_t
20
21
22
24 The setkey_t SELinux type can be entered via the setkey_exec_t file
25 type.
26
27 The default entrypoint paths for the setkey_t domain are the following:
28
29 /sbin/setkey, /usr/sbin/setkey
30
32 SELinux defines process types (domains) for each process running on the
33 system
34
35 You can see the context of a process using the -Z option to ps
36
37 Policy governs the access confined processes have to files. SELinux
38 setkey policy is very flexible allowing users to setup their setkey
39 processes in as secure a method as possible.
40
41 The following process types are defined for setkey:
42
43 setkey_t
44
45 Note: semanage permissive -a setkey_t can be used to make the process
46 type setkey_t permissive. SELinux does not deny access to permissive
47 process types, but the AVC (SELinux denials) messages are still gener‐
48 ated.
49
50
52 SELinux policy is customizable based on least access required. setkey
53 policy is extremely flexible and has several booleans that allow you to
54 manipulate the policy and run setkey with the tightest access possible.
55
56
57
58 If you want to allow all daemons the ability to read/write terminals,
59 you must turn on the allow_daemons_use_tty boolean. Disabled by
60 default.
61
62 setsebool -P allow_daemons_use_tty 1
63
64
65
66 If you want to allow all domains to use other domains file descriptors,
67 you must turn on the allow_domain_fd_use boolean. Enabled by default.
68
69 setsebool -P allow_domain_fd_use 1
70
71
72
73 If you want to allow sysadm to debug or ptrace all processes, you must
74 turn on the allow_ptrace boolean. Disabled by default.
75
76 setsebool -P allow_ptrace 1
77
78
79
80 If you want to allow all domains to have the kernel load modules, you
81 must turn on the domain_kernel_load_modules boolean. Disabled by
82 default.
83
84 setsebool -P domain_kernel_load_modules 1
85
86
87
88 If you want to allow all domains to execute in fips_mode, you must turn
89 on the fips_mode boolean. Enabled by default.
90
91 setsebool -P fips_mode 1
92
93
94
95 If you want to enable reading of urandom for all domains, you must turn
96 on the global_ssp boolean. Disabled by default.
97
98 setsebool -P global_ssp 1
99
100
101
103 The SELinux process type setkey_t can manage files labeled with the
104 following file types. The paths listed are the default paths for these
105 file types. Note the processes UID still need to have DAC permissions.
106
107 initrc_tmp_t
108
109
110 mnt_t
111
112 /mnt(/[^/]*)
113 /mnt(/[^/]*)?
114 /rhev(/[^/]*)?
115 /media(/[^/]*)
116 /media(/[^/]*)?
117 /etc/rhgb(/.*)?
118 /media/.hal-.*
119 /net
120 /afs
121 /rhev
122 /misc
123
124 tmp_t
125
126 /tmp
127 /usr/tmp
128 /var/tmp
129 /tmp-inst
130 /var/tmp-inst
131 /var/tmp/vi.recover
132
133
135 SELinux requires files to have an extended attribute to define the file
136 type.
137
138 You can see the context of a file using the -Z option to ls
139
140 Policy governs the access confined processes have to these files.
141 SELinux setkey policy is very flexible allowing users to setup their
142 setkey processes in as secure a method as possible.
143
144 The following file types are defined for setkey:
145
146
147
148 setkey_exec_t
149
150 - Set files with the setkey_exec_t type, if you want to transition an
151 executable to the setkey_t domain.
152
153
154 Paths:
155 /sbin/setkey, /usr/sbin/setkey
156
157
158 Note: File context can be temporarily modified with the chcon command.
159 If you want to permanently change the file context you need to use the
160 semanage fcontext command. This will modify the SELinux labeling data‐
161 base. You will need to use restorecon to apply the labels.
162
163
165 semanage fcontext can also be used to manipulate default file context
166 mappings.
167
168 semanage permissive can also be used to manipulate whether or not a
169 process type is permissive.
170
171 semanage module can also be used to enable/disable/install/remove pol‐
172 icy modules.
173
174 semanage boolean can also be used to manipulate the booleans
175
176
177 system-config-selinux is a GUI tool available to customize SELinux pol‐
178 icy settings.
179
180
182 This manual page was auto-generated using sepolicy manpage .
183
184
186 selinux(8), setkey(8), semanage(8), restorecon(8), chcon(1) , setse‐
187 bool(8)
188
189
190
191setkey 15-06-03 setkey_selinux(8)