1ccs_selinux(8)                SELinux Policy ccs                ccs_selinux(8)
2
3
4

NAME

6       ccs_selinux - Security Enhanced Linux Policy for the ccs processes
7

DESCRIPTION

9       Security-Enhanced  Linux  secures the ccs processes via flexible manda‐
10       tory access control.
11
12       The ccs processes execute with the ccs_t SELinux type. You can check if
13       you  have  these processes running by executing the ps command with the
14       -Z qualifier.
15
16       For example:
17
18       ps -eZ | grep ccs_t
19
20
21

ENTRYPOINTS

23       The ccs_t SELinux type can be entered via the ccs_exec_t file type.
24
25       The default entrypoint paths for the ccs_t domain are the following:
26
27       /sbin/ccsd, /usr/sbin/ccsd
28

PROCESS TYPES

30       SELinux defines process types (domains) for each process running on the
31       system
32
33       You can see the context of a process using the -Z option to ps
34
35       Policy  governs  the  access confined processes have to files.  SELinux
36       ccs policy is very flexible allowing users to setup their ccs processes
37       in as secure a method as possible.
38
39       The following process types are defined for ccs:
40
41       ccs_t
42
43       Note: semanage permissive -a ccs_t can be used to make the process type
44       ccs_t permissive. SELinux does not deny access  to  permissive  process
45       types, but the AVC (SELinux denials) messages are still generated.
46
47

BOOLEANS

49       SELinux  policy  is  customizable  based on least access required.  ccs
50       policy is extremely flexible and has several booleans that allow you to
51       manipulate the policy and run ccs with the tightest access possible.
52
53
54
55       If you want to allow all daemons to write corefiles to /, you must turn
56       on the daemons_dump_core boolean. Disabled by default.
57
58       setsebool -P daemons_dump_core 1
59
60
61
62       If you want to enable cluster mode for daemons, you must  turn  on  the
63       daemons_enable_cluster_mode boolean. Enabled by default.
64
65       setsebool -P daemons_enable_cluster_mode 1
66
67
68
69       If  you want to allow all daemons to use tcp wrappers, you must turn on
70       the daemons_use_tcp_wrapper boolean. Disabled by default.
71
72       setsebool -P daemons_use_tcp_wrapper 1
73
74
75
76       If you want to allow all daemons the ability to  read/write  terminals,
77       you must turn on the daemons_use_tty boolean. Disabled by default.
78
79       setsebool -P daemons_use_tty 1
80
81
82
83       If  you  want  to deny any process from ptracing or debugging any other
84       processes, you  must  turn  on  the  deny_ptrace  boolean.  Enabled  by
85       default.
86
87       setsebool -P deny_ptrace 1
88
89
90
91       If  you  want  to  allow  any  process  to mmap any file on system with
92       attribute file_type, you must turn on the  domain_can_mmap_files  bool‐
93       ean. Enabled by default.
94
95       setsebool -P domain_can_mmap_files 1
96
97
98
99       If  you want to allow all domains write to kmsg_device, while kernel is
100       executed with systemd.log_target=kmsg parameter, you must turn  on  the
101       domain_can_write_kmsg boolean. Disabled by default.
102
103       setsebool -P domain_can_write_kmsg 1
104
105
106
107       If you want to allow all domains to use other domains file descriptors,
108       you must turn on the domain_fd_use boolean. Enabled by default.
109
110       setsebool -P domain_fd_use 1
111
112
113
114       If you want to allow all domains to have the kernel load  modules,  you
115       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
116       default.
117
118       setsebool -P domain_kernel_load_modules 1
119
120
121
122       If you want to allow all domains to execute in fips_mode, you must turn
123       on the fips_mode boolean. Enabled by default.
124
125       setsebool -P fips_mode 1
126
127
128
129       If you want to enable reading of urandom for all domains, you must turn
130       on the global_ssp boolean. Disabled by default.
131
132       setsebool -P global_ssp 1
133
134
135
136       If you want to allow confined applications to use nscd  shared  memory,
137       you must turn on the nscd_use_shm boolean. Disabled by default.
138
139       setsebool -P nscd_use_shm 1
140
141
142

MANAGED FILES

144       The  SELinux  process type ccs_t can manage files labeled with the fol‐
145       lowing file types.  The paths listed are the default  paths  for  these
146       file types.  Note the processes UID still need to have DAC permissions.
147
148       ccs_tmp_t
149
150
151       ccs_tmpfs_t
152
153
154       ccs_var_lib_t
155
156            /var/lib/cluster/((ccs)|(ccsd)).*
157
158       ccs_var_run_t
159
160            /var/run/cluster/((ccs)|(ccsd)).pid
161            /var/run/cluster/((ccs)|(ccsd)).sock
162
163       cluster_conf_t
164
165            /etc/cluster(/.*)?
166
167       cluster_var_lib_t
168
169            /var/lib/pcsd(/.*)?
170            /var/lib/cluster(/.*)?
171            /var/lib/openais(/.*)?
172            /var/lib/pengine(/.*)?
173            /var/lib/corosync(/.*)?
174            /usr/lib/heartbeat(/.*)?
175            /var/lib/heartbeat(/.*)?
176            /var/lib/pacemaker(/.*)?
177
178       cluster_var_run_t
179
180            /var/run/crm(/.*)?
181            /var/run/cman_.*
182            /var/run/rsctmp(/.*)?
183            /var/run/aisexec.*
184            /var/run/heartbeat(/.*)?
185            /var/run/corosync-qnetd(/.*)?
186            /var/run/corosync-qdevice(/.*)?
187            /var/run/cpglockd.pid
188            /var/run/corosync.pid
189            /var/run/rgmanager.pid
190            /var/run/cluster/rgmanager.sk
191
192       initrc_tmp_t
193
194
195       qpidd_tmpfs_t
196
197
198       root_t
199
200            /sysroot/ostree/deploy/.*-atomic.*/deploy(/.*)?
201            /
202            /initrd
203
204       unlabeled_t
205
206
207

FILE CONTEXTS

209       SELinux requires files to have an extended attribute to define the file
210       type.
211
212       You can see the context of a file using the -Z option to ls
213
214       Policy governs the access  confined  processes  have  to  these  files.
215       SELinux  ccs  policy is very flexible allowing users to setup their ccs
216       processes in as secure a method as possible.
217
218       STANDARD FILE CONTEXT
219
220       SELinux defines the file context types for the ccs, if  you  wanted  to
221       store  files  with  these types in a diffent paths, you need to execute
222       the semanage command  to  sepecify  alternate  labeling  and  then  use
223       restorecon to put the labels on disk.
224
225       semanage fcontext -a -t ccs_var_run_t '/srv/myccs_content(/.*)?'
226       restorecon -R -v /srv/myccs_content
227
228       Note:  SELinux  often  uses  regular expressions to specify labels that
229       match multiple files.
230
231       The following file types are defined for ccs:
232
233
234
235       ccs_exec_t
236
237       - Set files with the ccs_exec_t type, if you want to transition an exe‐
238       cutable to the ccs_t domain.
239
240
241       Paths:
242            /sbin/ccsd, /usr/sbin/ccsd
243
244
245       ccs_initrc_exec_t
246
247       -  Set files with the ccs_initrc_exec_t type, if you want to transition
248       an executable to the ccs_initrc_t domain.
249
250
251
252       ccs_tmp_t
253
254       - Set files with the ccs_tmp_t type, if you want to store ccs temporary
255       files in the /tmp directories.
256
257
258
259       ccs_tmpfs_t
260
261       -  Set  files with the ccs_tmpfs_t type, if you want to store ccs files
262       on a tmpfs file system.
263
264
265
266       ccs_var_lib_t
267
268       - Set files with the ccs_var_lib_t type, if you want to store  the  ccs
269       files under the /var/lib directory.
270
271
272
273       ccs_var_log_t
274
275       -  Set files with the ccs_var_log_t type, if you want to treat the data
276       as ccs var log data, usually stored under the /var/log directory.
277
278
279
280       ccs_var_run_t
281
282       - Set files with the ccs_var_run_t type, if you want to store  the  ccs
283       files under the /run or /var/run directory.
284
285
286       Paths:
287            /var/run/cluster/((ccs)|(ccsd)).pid,                /var/run/clus‐
288            ter/((ccs)|(ccsd)).sock
289
290
291       Note: File context can be temporarily modified with the chcon  command.
292       If  you want to permanently change the file context you need to use the
293       semanage fcontext command.  This will modify the SELinux labeling data‐
294       base.  You will need to use restorecon to apply the labels.
295
296

COMMANDS

298       semanage  fcontext  can also be used to manipulate default file context
299       mappings.
300
301       semanage permissive can also be used to manipulate  whether  or  not  a
302       process type is permissive.
303
304       semanage  module can also be used to enable/disable/install/remove pol‐
305       icy modules.
306
307       semanage boolean can also be used to manipulate the booleans
308
309
310       system-config-selinux is a GUI tool available to customize SELinux pol‐
311       icy settings.
312
313

AUTHOR

315       This manual page was auto-generated using sepolicy manpage .
316
317

SEE ALSO

319       selinux(8), ccs(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) ,
320       setsebool(8)
321
322
323
324ccs                                19-04-25                     ccs_selinux(8)
Impressum