1systemd_passwd_agent_seSlEiLniunxu(x8)Policy systemd_passsywsdt_eamgde_nptasswd_agent_selinux(8)
2
3
4
6 systemd_passwd_agent_selinux - Security Enhanced Linux Policy for the
7 systemd_passwd_agent processes
8
10 Security-Enhanced Linux secures the systemd_passwd_agent processes via
11 flexible mandatory access control.
12
13 The systemd_passwd_agent processes execute with the sys‐
14 temd_passwd_agent_t SELinux type. You can check if you have these pro‐
15 cesses running by executing the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep systemd_passwd_agent_t
20
21
22
24 The systemd_passwd_agent_t SELinux type can be entered via the sys‐
25 temd_passwd_agent_exec_t file type.
26
27 The default entrypoint paths for the systemd_passwd_agent_t domain are
28 the following:
29
30 /bin/systemd-tty-ask-password-agent, /usr/bin/systemd-tty-ask-password-
31 agent, /usr/bin/systemd-gnome-ask-password-agent
32
34 SELinux defines process types (domains) for each process running on the
35 system
36
37 You can see the context of a process using the -Z option to ps
38
39 Policy governs the access confined processes have to files. SELinux
40 systemd_passwd_agent policy is very flexible allowing users to setup
41 their systemd_passwd_agent processes in as secure a method as possible.
42
43 The following process types are defined for systemd_passwd_agent:
44
45 systemd_passwd_agent_t
46
47 Note: semanage permissive -a systemd_passwd_agent_t can be used to make
48 the process type systemd_passwd_agent_t permissive. SELinux does not
49 deny access to permissive process types, but the AVC (SELinux denials)
50 messages are still generated.
51
52
54 SELinux policy is customizable based on least access required. sys‐
55 temd_passwd_agent policy is extremely flexible and has several booleans
56 that allow you to manipulate the policy and run systemd_passwd_agent
57 with the tightest access possible.
58
59
60
61 If you want to allow users to resolve user passwd entries directly from
62 ldap rather then using a sssd server, you must turn on the authlo‐
63 gin_nsswitch_use_ldap boolean. Disabled by default.
64
65 setsebool -P authlogin_nsswitch_use_ldap 1
66
67
68
69 If you want to allow all domains to execute in fips_mode, you must turn
70 on the fips_mode boolean. Enabled by default.
71
72 setsebool -P fips_mode 1
73
74
75
76 If you want to allow confined applications to run with kerberos, you
77 must turn on the kerberos_enabled boolean. Enabled by default.
78
79 setsebool -P kerberos_enabled 1
80
81
82
83 If you want to allow system to run with NIS, you must turn on the
84 nis_enabled boolean. Disabled by default.
85
86 setsebool -P nis_enabled 1
87
88
89
90 If you want to allow confined applications to use nscd shared memory,
91 you must turn on the nscd_use_shm boolean. Disabled by default.
92
93 setsebool -P nscd_use_shm 1
94
95
96
97 If you want to allow staff user to create and transition to svirt
98 domains, you must turn on the staff_use_svirt boolean. Disabled by
99 default.
100
101 setsebool -P staff_use_svirt 1
102
103
104
106 The SELinux process type systemd_passwd_agent_t can manage files
107 labeled with the following file types. The paths listed are the
108 default paths for these file types. Note the processes UID still need
109 to have DAC permissions.
110
111 cluster_conf_t
112
113 /etc/cluster(/.*)?
114
115 cluster_var_lib_t
116
117 /var/lib/pcsd(/.*)?
118 /var/lib/cluster(/.*)?
119 /var/lib/openais(/.*)?
120 /var/lib/pengine(/.*)?
121 /var/lib/corosync(/.*)?
122 /usr/lib/heartbeat(/.*)?
123 /var/lib/heartbeat(/.*)?
124 /var/lib/pacemaker(/.*)?
125
126 cluster_var_run_t
127
128 /var/run/crm(/.*)?
129 /var/run/cman_.*
130 /var/run/rsctmp(/.*)?
131 /var/run/aisexec.*
132 /var/run/heartbeat(/.*)?
133 /var/run/corosync-qnetd(/.*)?
134 /var/run/corosync-qdevice(/.*)?
135 /var/run/corosync.pid
136 /var/run/cpglockd.pid
137 /var/run/rgmanager.pid
138 /var/run/cluster/rgmanager.sk
139
140 root_t
141
142 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
143 /
144 /initrd
145
146 systemd_passwd_var_run_t
147
148 /var/run/systemd/ask-password(/.*)?
149 /var/run/systemd/ask-password-block(/.*)?
150
151
153 SELinux requires files to have an extended attribute to define the file
154 type.
155
156 You can see the context of a file using the -Z option to ls
157
158 Policy governs the access confined processes have to these files.
159 SELinux systemd_passwd_agent policy is very flexible allowing users to
160 setup their systemd_passwd_agent processes in as secure a method as
161 possible.
162
163 The following file types are defined for systemd_passwd_agent:
164
165
166
167 systemd_passwd_agent_exec_t
168
169 - Set files with the systemd_passwd_agent_exec_t type, if you want to
170 transition an executable to the systemd_passwd_agent_t domain.
171
172
173 Paths:
174 /bin/systemd-tty-ask-password-agent, /usr/bin/systemd-tty-ask-
175 password-agent, /usr/bin/systemd-gnome-ask-password-agent
176
177
178 Note: File context can be temporarily modified with the chcon command.
179 If you want to permanently change the file context you need to use the
180 semanage fcontext command. This will modify the SELinux labeling data‐
181 base. You will need to use restorecon to apply the labels.
182
183
185 semanage fcontext can also be used to manipulate default file context
186 mappings.
187
188 semanage permissive can also be used to manipulate whether or not a
189 process type is permissive.
190
191 semanage module can also be used to enable/disable/install/remove pol‐
192 icy modules.
193
194 semanage boolean can also be used to manipulate the booleans
195
196
197 system-config-selinux is a GUI tool available to customize SELinux pol‐
198 icy settings.
199
200
202 This manual page was auto-generated using sepolicy manpage .
203
204
206 selinux(8), systemd_passwd_agent(8), semanage(8), restorecon(8),
207 chcon(1), sepolicy(8), setsebool(8)
208
209
210
211systemd_passwd_agent 19-05-30 systemd_passwd_agent_selinux(8)