1updpwd_selinux(8) SELinux Policy updpwd updpwd_selinux(8)
2
3
4
6 updpwd_selinux - Security Enhanced Linux Policy for the updpwd pro‐
7 cesses
8
10 Security-Enhanced Linux secures the updpwd processes via flexible
11 mandatory access control.
12
13 The updpwd processes execute with the updpwd_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 updpwd_t
20
21
22
24 The updpwd_t SELinux type can be entered via the updpwd_exec_t file
25 type.
26
27 The default entrypoint paths for the updpwd_t domain are the following:
28
29 /sbin/unix_update, /usr/sbin/unix_update, /usr/sbin/pwhistory_helper
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 updpwd policy is very flexible allowing users to setup their updpwd
39 processes in as secure a method as possible.
40
41 The following process types are defined for updpwd:
42
43 updpwd_t
44
45 Note: semanage permissive -a updpwd_t can be used to make the process
46 type updpwd_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. updpwd
53 policy is extremely flexible and has several booleans that allow you to
54 manipulate the policy and run updpwd with the tightest access possible.
55
56
57
58 If you want to allow all domains to execute in fips_mode, you must turn
59 on the fips_mode boolean. Enabled by default.
60
61 setsebool -P fips_mode 1
62
63
64
65 If you want to allow Apache to use mod_auth_pam, you must turn on the
66 httpd_mod_auth_pam boolean. Disabled by default.
67
68 setsebool -P httpd_mod_auth_pam 1
69
70
71
72 If you want to allow nagios/nrpe to call sudo from NRPE utils scripts,
73 you must turn on the nagios_run_sudo boolean. Disabled by default.
74
75 setsebool -P nagios_run_sudo 1
76
77
78
79 If you want to allow system to run with NIS, you must turn on the
80 nis_enabled boolean. Disabled by default.
81
82 setsebool -P nis_enabled 1
83
84
85
87 The SELinux process type updpwd_t can manage files labeled with the
88 following file types. The paths listed are the default paths for these
89 file types. Note the processes UID still need to have DAC permissions.
90
91 krb5_host_rcache_t
92
93 /var/tmp/krb5_0.rcache2
94 /var/cache/krb5rcache(/.*)?
95 /var/tmp/nfs_0
96 /var/tmp/DNS_25
97 /var/tmp/host_0
98 /var/tmp/imap_0
99 /var/tmp/HTTP_23
100 /var/tmp/HTTP_48
101 /var/tmp/ldap_55
102 /var/tmp/ldap_487
103 /var/tmp/ldapmap1_0
104
105 shadow_t
106
107 /etc/shadow.*
108 /etc/gshadow.*
109 /etc/nshadow.*
110 /var/db/shadow.*
111 /etc/security/opasswd
112 /etc/security/opasswd.old
113
114
116 SELinux requires files to have an extended attribute to define the file
117 type.
118
119 You can see the context of a file using the -Z option to ls
120
121 Policy governs the access confined processes have to these files.
122 SELinux updpwd policy is very flexible allowing users to setup their
123 updpwd processes in as secure a method as possible.
124
125 The following file types are defined for updpwd:
126
127
128
129 updpwd_exec_t
130
131 - Set files with the updpwd_exec_t type, if you want to transition an
132 executable to the updpwd_t domain.
133
134
135 Paths:
136 /sbin/unix_update, /usr/sbin/unix_update, /usr/sbin/pwhis‐
137 tory_helper
138
139
140 Note: File context can be temporarily modified with the chcon command.
141 If you want to permanently change the file context you need to use the
142 semanage fcontext command. This will modify the SELinux labeling data‐
143 base. You will need to use restorecon to apply the labels.
144
145
147 semanage fcontext can also be used to manipulate default file context
148 mappings.
149
150 semanage permissive can also be used to manipulate whether or not a
151 process type is permissive.
152
153 semanage module can also be used to enable/disable/install/remove pol‐
154 icy modules.
155
156 semanage boolean can also be used to manipulate the booleans
157
158
159 system-config-selinux is a GUI tool available to customize SELinux pol‐
160 icy settings.
161
162
164 This manual page was auto-generated using sepolicy manpage .
165
166
168 selinux(8), updpwd(8), semanage(8), restorecon(8), chcon(1), sepol‐
169 icy(8), setsebool(8)
170
171
172
173updpwd 21-06-09 updpwd_selinux(8)