1openshift_app_selinux(8) SELinux Policy openshift_app openshift_app_selinux(8)
2
3
4
6 openshift_app_selinux - Security Enhanced Linux Policy for the open‐
7 shift_app processes
8
10 Security-Enhanced Linux secures the openshift_app processes via flexi‐
11 ble mandatory access control.
12
13 The openshift_app processes execute with the openshift_app_t SELinux
14 type. You can check if you have these processes running by executing
15 the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep openshift_app_t
20
21
22
24 The openshift_app_t SELinux type can be entered via the crontab_exec_t,
25 user_cron_spool_t file types.
26
27 The default entrypoint paths for the openshift_app_t domain are the
28 following:
29
30 /usr/bin/(f)?crontab, /usr/bin/at, /usr/sbin/fcronsighup,
31 /usr/libexec/fcronsighup, /var/spool/at(/.*)?, /var/spool/cron,
32 /var/spool/cron/[^/]+
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 openshift_app policy is very flexible allowing users to setup their
42 openshift_app processes in as secure a method as possible.
43
44 The following process types are defined for openshift_app:
45
46 openshift_app_t
47
48 Note: semanage permissive -a openshift_app_t can be used to make the
49 process type openshift_app_t permissive. SELinux does not deny access
50 to permissive process types, but the AVC (SELinux denials) messages are
51 still generated.
52
53
55 The SELinux process type openshift_app_t is an MCS (Multi Category Se‐
56 curity) constrained type. Sometimes this separation is referred to as
57 sVirt. These types are usually used for securing multi-tenant environ‐
58 ments, such as virtualization, containers or separation of users. The
59 tools used to launch MCS types, pick out a different MCS label for each
60 process group.
61
62 For example one process might be launched with open‐
63 shift_app_t:s0:c1,c2, and another process launched with open‐
64 shift_app_t:s0:c3,c4. The SELinux kernel only allows these processes
65 can only write to content with a matching MCS label, or a MCS Label of
66 s0. A process running with the MCS level of s0:c1,c2 is not allowed to
67 write to content with the MCS label of s0:c3,c4
68
69
71 SELinux policy is customizable based on least access required. open‐
72 shift_app policy is extremely flexible and has several booleans that
73 allow you to manipulate the policy and run openshift_app with the
74 tightest access possible.
75
76
77
78 If you want to determine whether crond can execute jobs in the user do‐
79 main as opposed to the the generic cronjob domain, you must turn on the
80 cron_userdomain_transition boolean. Enabled by default.
81
82 setsebool -P cron_userdomain_transition 1
83
84
85
86 If you want to deny any process from ptracing or debugging any other
87 processes, you must turn on the deny_ptrace boolean. Enabled by de‐
88 fault.
89
90 setsebool -P deny_ptrace 1
91
92
93
95 The SELinux process type openshift_app_t can manage files labeled with
96 the following file types. The paths listed are the default paths for
97 these file types. Note the processes UID still need to have DAC per‐
98 missions.
99
100 faillog_t
101
102 /var/log/btmp.*
103 /var/log/faillog.*
104 /var/log/tallylog.*
105 /var/run/faillock(/.*)?
106
107 hugetlbfs_t
108
109 /dev/hugepages
110 /usr/lib/udev/devices/hugepages
111
112 krb5_host_rcache_t
113
114 /var/tmp/krb5_0.rcache2
115 /var/cache/krb5rcache(/.*)?
116 /var/tmp/nfs_0
117 /var/tmp/DNS_25
118 /var/tmp/host_0
119 /var/tmp/imap_0
120 /var/tmp/HTTP_23
121 /var/tmp/HTTP_48
122 /var/tmp/ldap_55
123 /var/tmp/ldap_487
124 /var/tmp/ldapmap1_0
125
126 openshift_tmpfs_t
127
128
129 security_t
130
131 /selinux
132
133
135 semanage fcontext can also be used to manipulate default file context
136 mappings.
137
138 semanage permissive can also be used to manipulate whether or not a
139 process type is permissive.
140
141 semanage module can also be used to enable/disable/install/remove pol‐
142 icy modules.
143
144 semanage boolean can also be used to manipulate the booleans
145
146
147 system-config-selinux is a GUI tool available to customize SELinux pol‐
148 icy settings.
149
150
152 This manual page was auto-generated using sepolicy manpage .
153
154
156 selinux(8), openshift_app(8), semanage(8), restorecon(8), chcon(1), se‐
157 policy(8), setsebool(8)
158
159
160
161openshift_app 23-02-03 openshift_app_selinux(8)