1ping_selinux(8)               SELinux Policy ping              ping_selinux(8)
2
3
4

NAME

6       ping_selinux - Security Enhanced Linux Policy for the ping processes
7

DESCRIPTION

9       Security-Enhanced  Linux secures the ping processes via flexible manda‐
10       tory access control.
11
12       The ping processes execute with the ping_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 ping_t
19
20
21

ENTRYPOINTS

23       The ping_t SELinux type can be entered via the ping_exec_t file type.
24
25       The default entrypoint paths for the ping_t domain are the following:
26
27       /bin/ping.*,  /usr/bin/ping.*,   /usr/sbin/fping.*,   /usr/sbin/hping2,
28       /usr/sbin/send_arp, /usr/lib/heartbeat/send_arp
29

PROCESS TYPES

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

BOOLEANS

51       SELinux  policy  is  customizable based on least access required.  ping
52       policy is extremely flexible and has several booleans that allow you to
53       manipulate the policy and run ping with the tightest access possible.
54
55
56
57       If you want to allow all domains to execute in fips_mode, you must turn
58       on the fips_mode boolean. Enabled by default.
59
60       setsebool -P fips_mode 1
61
62
63
64       If you want to allow system to run with  NIS,  you  must  turn  on  the
65       nis_enabled boolean. Disabled by default.
66
67       setsebool -P nis_enabled 1
68
69
70
71       If you want to allow confined users the ability to execute the ping and
72       traceroute commands, you must turn  on  the  selinuxuser_ping  boolean.
73       Disabled by default.
74
75       setsebool -P selinuxuser_ping 1
76
77
78

PORT TYPES

80       SELinux defines port types to represent TCP and UDP ports.
81
82       You  can  see  the  types associated with a port by using the following
83       command:
84
85       semanage port -l
86
87
88       Policy governs the access  confined  processes  have  to  these  ports.
89       SELinux ping policy is very flexible allowing users to setup their ping
90       processes in as secure a method as possible.
91
92       The following port types are defined for ping:
93
94
95       pingd_port_t
96
97
98
99       Default Defined Ports:
100                 tcp 9125
101

FILE CONTEXTS

103       SELinux requires files to have an extended attribute to define the file
104       type.
105
106       You can see the context of a file using the -Z option to ls
107
108       Policy  governs  the  access  confined  processes  have to these files.
109       SELinux ping policy is very flexible allowing users to setup their ping
110       processes in as secure a method as possible.
111
112       STANDARD FILE CONTEXT
113
114       SELinux  defines  the file context types for the ping, if you wanted to
115       store files with these types in a diffent paths, you  need  to  execute
116       the  semanage  command  to  sepecify  alternate  labeling  and then use
117       restorecon to put the labels on disk.
118
119       semanage fcontext -a -t pingd_modules_t '/srv/myping_content(/.*)?'
120       restorecon -R -v /srv/myping_content
121
122       Note: SELinux often uses regular expressions  to  specify  labels  that
123       match multiple files.
124
125       The following file types are defined for ping:
126
127
128
129       ping_exec_t
130
131       -  Set  files  with  the ping_exec_t type, if you want to transition an
132       executable to the ping_t domain.
133
134
135       Paths:
136            /bin/ping.*, /usr/bin/ping.*, /usr/sbin/fping.*, /usr/sbin/hping2,
137            /usr/sbin/send_arp, /usr/lib/heartbeat/send_arp
138
139
140       pingd_etc_t
141
142       - Set files with the pingd_etc_t type, if you want to store pingd files
143       in the /etc directories.
144
145
146
147       pingd_exec_t
148
149       - Set files with the pingd_exec_t type, if you want  to  transition  an
150       executable to the pingd_t domain.
151
152
153
154       pingd_initrc_exec_t
155
156       -  Set  files with the pingd_initrc_exec_t type, if you want to transi‐
157       tion an executable to the pingd_initrc_t domain.
158
159
160
161       pingd_modules_t
162
163       - Set files with the pingd_modules_t type, if you  want  to  treat  the
164       files as pingd modules.
165
166
167
168       Note:  File context can be temporarily modified with the chcon command.
169       If you want to permanently change the file context you need to use  the
170       semanage fcontext command.  This will modify the SELinux labeling data‐
171       base.  You will need to use restorecon to apply the labels.
172
173

COMMANDS

175       semanage fcontext can also be used to manipulate default  file  context
176       mappings.
177
178       semanage  permissive  can  also  be used to manipulate whether or not a
179       process type is permissive.
180
181       semanage module can also be used to enable/disable/install/remove  pol‐
182       icy modules.
183
184       semanage port can also be used to manipulate the port definitions
185
186       semanage boolean can also be used to manipulate the booleans
187
188
189       system-config-selinux is a GUI tool available to customize SELinux pol‐
190       icy settings.
191
192

AUTHOR

194       This manual page was auto-generated using sepolicy manpage .
195
196

SEE ALSO

198       selinux(8), ping(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
199       setsebool(8)
200
201
202
203ping                               20-05-05                    ping_selinux(8)
Impressum