1nmbd_selinux(8)               SELinux Policy nmbd              nmbd_selinux(8)
2
3
4

NAME

6       nmbd_selinux - Security Enhanced Linux Policy for the nmbd processes
7

DESCRIPTION

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

ENTRYPOINTS

23       The nmbd_t SELinux type can be entered via the nmbd_exec_t file type.
24
25       The default entrypoint paths for the nmbd_t domain are the following:
26
27       /usr/sbin/nmbd
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       nmbd policy is very flexible allowing users to setup  their  nmbd  pro‐
37       cesses in as secure a method as possible.
38
39       The following process types are defined for nmbd:
40
41       nmbd_t
42
43       Note:  semanage  permissive  -a  nmbd_t can be used to make the process
44       type nmbd_t permissive. SELinux does  not  deny  access  to  permissive
45       process  types, but the AVC (SELinux denials) messages are still gener‐
46       ated.
47
48

BOOLEANS

50       SELinux policy is customizable based on least  access  required.   nmbd
51       policy is extremely flexible and has several booleans that allow you to
52       manipulate the policy and run nmbd with the tightest access possible.
53
54
55
56       If you want to dontaudit all  daemons  scheduling  requests  (setsched,
57       sys_nice),  you  must turn on the daemons_dontaudit_scheduling boolean.
58       Enabled by default.
59
60       setsebool -P daemons_dontaudit_scheduling 1
61
62
63
64       If you want to allow all domains to execute in fips_mode, you must turn
65       on the fips_mode boolean. Enabled by default.
66
67       setsebool -P fips_mode 1
68
69
70
71       If  you  want  to  allow  system  to run with NIS, you must turn on the
72       nis_enabled boolean. Disabled by default.
73
74       setsebool -P nis_enabled 1
75
76
77
78       If you want to allow samba to share any file/directory read  only,  you
79       must turn on the samba_export_all_ro boolean. Disabled by default.
80
81       setsebool -P samba_export_all_ro 1
82
83
84
85       If  you want to allow samba to share any file/directory read/write, you
86       must turn on the samba_export_all_rw boolean. Disabled by default.
87
88       setsebool -P samba_export_all_rw 1
89
90
91

PORT TYPES

93       SELinux defines port types to represent TCP and UDP ports.
94
95       You can see the types associated with a port  by  using  the  following
96       command:
97
98       semanage port -l
99
100
101       Policy  governs  the  access  confined  processes  have to these ports.
102       SELinux nmbd policy is very flexible allowing users to setup their nmbd
103       processes in as secure a method as possible.
104
105       The following port types are defined for nmbd:
106
107
108       nmbd_port_t
109
110
111
112       Default Defined Ports:
113                 udp 137,138
114

MANAGED FILES

116       The  SELinux process type nmbd_t can manage files labeled with the fol‐
117       lowing file types.  The paths listed are the default  paths  for  these
118       file types.  Note the processes UID still need to have DAC permissions.
119
120       cluster_conf_t
121
122            /etc/cluster(/.*)?
123
124       cluster_var_lib_t
125
126            /var/lib/pcsd(/.*)?
127            /var/lib/cluster(/.*)?
128            /var/lib/openais(/.*)?
129            /var/lib/pengine(/.*)?
130            /var/lib/corosync(/.*)?
131            /usr/lib/heartbeat(/.*)?
132            /var/lib/heartbeat(/.*)?
133            /var/lib/pacemaker(/.*)?
134
135       cluster_var_run_t
136
137            /var/run/crm(/.*)?
138            /var/run/cman_.*
139            /var/run/rsctmp(/.*)?
140            /var/run/aisexec.*
141            /var/run/heartbeat(/.*)?
142            /var/run/pcsd-ruby.socket
143            /var/run/corosync-qnetd(/.*)?
144            /var/run/corosync-qdevice(/.*)?
145            /var/run/corosync.pid
146            /var/run/cpglockd.pid
147            /var/run/rgmanager.pid
148            /var/run/cluster/rgmanager.sk
149
150       ctdbd_var_lib_t
151
152            /var/lib/ctdb(/.*)?
153            /var/lib/ctdbd(/.*)?
154
155       krb5_host_rcache_t
156
157            /var/tmp/krb5_0.rcache2
158            /var/cache/krb5rcache(/.*)?
159            /var/tmp/nfs_0
160            /var/tmp/DNS_25
161            /var/tmp/host_0
162            /var/tmp/imap_0
163            /var/tmp/HTTP_23
164            /var/tmp/HTTP_48
165            /var/tmp/ldap_55
166            /var/tmp/ldap_487
167            /var/tmp/ldapmap1_0
168
169       nmbd_var_run_t
170
171            /var/run/nmbd(/.*)?
172            /var/run/samba/nmbd(/.*)?
173            /var/run/samba/nmbd.pid
174            /var/run/samba/messages.tdb
175            /var/run/samba/namelist.debug
176            /var/run/samba/unexpected.tdb
177
178       non_security_file_type
179
180
181       noxattrfs
182
183            all files on file systems which do not support extended attributes
184
185       root_t
186
187            /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
188            /
189            /initrd
190
191       samba_log_t
192
193            /var/log/samba(/.*)?
194
195

FILE CONTEXTS

197       SELinux requires files to have an extended attribute to define the file
198       type.
199
200       You can see the context of a file using the -Z option to ls
201
202       Policy governs the access  confined  processes  have  to  these  files.
203       SELinux nmbd policy is very flexible allowing users to setup their nmbd
204       processes in as secure a method as possible.
205
206       EQUIVALENCE DIRECTORIES
207
208
209       nmbd policy stores data with multiple different file context types  un‐
210       der  the /var/run/samba/nmbd directory.  If you would like to store the
211       data in a different directory you can use the semanage command to  cre‐
212       ate an equivalence mapping.  If you wanted to store this data under the
213       /srv directory you would execute the following command:
214
215       semanage fcontext -a -e /var/run/samba/nmbd /srv/nmbd
216       restorecon -R -v /srv/nmbd
217
218       STANDARD FILE CONTEXT
219
220       SELinux defines the file context types for the nmbd, if you  wanted  to
221       store  files with these types in a different paths, you need to execute
222       the semanage command to specify alternate labeling  and  then  use  re‐
223       storecon to put the labels on disk.
224
225       semanage fcontext -a -t nmbd_exec_t '/srv/nmbd/content(/.*)?'
226       restorecon -R -v /srv/mynmbd_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 nmbd:
232
233
234
235       nmbd_exec_t
236
237       - Set files with the nmbd_exec_t type, if you want to transition an ex‐
238       ecutable to the nmbd_t domain.
239
240
241
242       nmbd_var_run_t
243
244       - Set files with the nmbd_var_run_t type, if you want to store the nmbd
245       files under the /run or /var/run directory.
246
247
248       Paths:
249            /var/run/nmbd(/.*)?,                    /var/run/samba/nmbd(/.*)?,
250            /var/run/samba/nmbd.pid,              /var/run/samba/messages.tdb,
251            /var/run/samba/namelist.debug, /var/run/samba/unexpected.tdb
252
253
254       Note: File context can be temporarily modified with the chcon  command.
255       If  you want to permanently change the file context you need to use the
256       semanage fcontext command.  This will modify the SELinux labeling data‐
257       base.  You will need to use restorecon to apply the labels.
258
259

COMMANDS

261       semanage  fcontext  can also be used to manipulate default file context
262       mappings.
263
264       semanage permissive can also be used to manipulate  whether  or  not  a
265       process type is permissive.
266
267       semanage  module can also be used to enable/disable/install/remove pol‐
268       icy modules.
269
270       semanage port can also be used to manipulate the port definitions
271
272       semanage boolean can also be used to manipulate the booleans
273
274
275       system-config-selinux is a GUI tool available to customize SELinux pol‐
276       icy settings.
277
278

AUTHOR

280       This manual page was auto-generated using sepolicy manpage .
281
282

SEE ALSO

284       selinux(8), nmbd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
285       setsebool(8)
286
287
288
289nmbd                               23-12-15                    nmbd_selinux(8)
Impressum