ping_selinux(8)
π ping_selinux(8) β SELinux Policy ping π
okay so bestie, welcome to ping_selinux(8) β the SELinux Policy ping page, and itβs lowkey iconic. π«Ά This is the whole group-chat recap: every process type, boolean, port, path, file context, command, and reference is right here. no cap.
πΈ NAME πΈ
ping_selinux β Security Enhanced Linux Policy for the ping processes. β¨
β¨ DESCRIPTION β¨
Security-Enhanced Linux secures the ping processes via flexible mandatory access control. Thatβs the main character energy of this whole page. π
The ping processes execute with the ping_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier.
For example:
ps -eZ | grep ping_t
πͺ ENTRYPOINTS πͺ
The ping_t SELinux type can be entered via the ping_exec_t file type. itβs giving doorway, fr fr. πͺβ¨
The default entrypoint paths for the ping_t domain are the following:
/usr/bin/n?oping, /usr/bin/ping.*, /usr/bin/fping.*, /usr/bin/hping2,
/usr/bin/send_arp, /usr/lib/heartbeat/send_arp
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. π
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux ping policy is very flexible allowing users to setup their ping processes in as secure a method as possible. π₯
The following process types are defined for ping:
ping_t, pingd_t
Note:semanage permissive -a ping_tcan be used to make the process typeping_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. π
π BOOLEANS π
SELinux policy is customizable based on least access required. ping policy is extremely flexible and has several booleans that allow you to manipulate the policy and run ping with the tightest access possible. π¦
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.
setsebool -P fips_mode 1
If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default.
setsebool -P nis_enabled 1
If you want to allow confined users the ability to execute the ping and traceroute commands, you must turn on the selinuxuser_ping boolean. Disabled by default.
setsebool -P selinuxuser_ping 1
π PORT TYPES π
SELinux defines port types to represent TCP and UDP ports, no cap. πβ¨
You can see the types associated with a port by using the following command:
semanage port -l
Policy governs the access confined processes have to these ports. SELinux ping policy is very flexible allowing users to setup their ping processes in as secure a method as possible. π
The following port types are defined for ping:
pingd_port_t
Default Defined Ports:
tcp 9125
ποΈ MANAGED FILES ποΈ
The SELinux process type ping_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. π«Ά
krb5_host_rcache_t
/var/tmp/krb5_0.rcache2/var/cache/krb5rcache(/.*)?/var/tmp/nfs_0/var/tmp/DNS_25/var/tmp/host_0/var/tmp/imap_0/var/tmp/HTTP_23/var/tmp/HTTP_48/var/tmp/ldap_55/var/tmp/ldap_487/var/tmp/ldapmap1_0
π§Έ FILE CONTEXTS π§Έ
SELinux requires files to have an extended attribute to define the file type. itβs literally the vibe check for file labels. π
You can see the context of a file using the -Z option to ls.
Policy governs the access confined processes have to these files. SELinux ping policy is very flexible allowing users to setup their ping processes in as secure a method as possible. πΈ
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the ping, if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.
semanage fcontext -a -t ping_exec_t '/srv/ping/content(/.*)?'
restorecon -R -v /srv/myping_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. π§
The following file types are defined for ping:
π
ping_exec_t
- Set files with the
ping_exec_ttype, if you want to transition an executable to theping_tdomain.
Paths:
/usr/bin/n?oping, /usr/bin/ping.*, /usr/bin/fping.*,
/usr/bin/hping2, /usr/bin/send_arp, /usr/lib/heartbeat/send_arp
π
pingd_etc_t
- Set files with the
pingd_etc_ttype, if you want to storepingdfiles in the/etcdirectories.
π
pingd_exec_t
- Set files with the
pingd_exec_ttype, if you want to transition an executable to thepingd_tdomain.
π
pingd_initrc_exec_t
- Set files with the
pingd_initrc_exec_ttype, if you want to transition an executable to thepingd_initrc_tdomain.
π
pingd_modules_t
- Set files with the
pingd_modules_ttype, if you want to treat the files aspingdmodules.
Note: File context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. β
π οΈ COMMANDS π οΈ
semanage fcontext can also be used to manipulate default file context mappings.
semanage permissive can also be used to manipulate whether or not a process type is permissive.
semanage module can also be used to enable/disable/install/remove policy modules.
semanage port can also be used to manipulate the port definitions.
semanage boolean can also be used to manipulate the booleans.
system-config-selinux is a GUI tool available to customize SELinux policy settings.
ποΈ AUTHOR ποΈ
This manual page was auto-generated using sepolicy manpage . π yes, the space before the period is canon bestie.
π SEE ALSO π
selinux(8), ping(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
mwah π β source/version tag: ping; date: 26-10-06; manual: ping_selinux(8). periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms