SELinux is a mandatory access control (MAC) system for the Linux operating system.
MAC systems relay on central authority for a decision on all access attempts.
Starting with PTA version 14, loadable module policy for SELinux is provided to support PTA processes. The policy is installed as part of PTA installation on supported OS versions.
Steps
If SELinux denials involve PTA objects (processes and files) access attempts, the denial will be logged in the auditing log.
All PTA types in the system start with “pta” as a prefix and end with “_t” suffix.
For example, pta_t, pta_etc_t, pta_opt_t, pta_var_init_t etc….
To search for SELinux access attempts denials execute:
“ausearch -m avc”
Example:
[root@localhost /]# ausearch -m avc ---- type=PROCTITLE msg=audit(1698311909.029:7111): proctitle=67726570002D71006B657973746F726546696C653D2222002F6F70742F746F6D6361742F636F6E662F7365727665722E786D6C type=PATH msg=audit(1698311909.029:7111): item=0 name="/opt/tomcat/conf/server.xml" inode=201821233 dev=fd:00 mode=0100750 ouid=991 ogid=981 rdev=00:00 obj=unconfined_u:object_r: pta_etc_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 OUID="tomcat" OGID="sslusers" type=SYSCALL msg=audit(1698311909.029:7111): arch=c000003e syscall=257 success=yes exit=3 a0=ffffff9c a1=7ffdfd70fefb a2=100 a3=0 items=1 ppid=18372 pid=18380 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="grep" exe="/usr/bin/grep" subj=system_u:system_r:pta_t:s0 key=(null) ARCH=x86_64 SYSCALL=openat AUID="unset" UID="root" GID="root" EUID="root" SUID="root" FSUID="root" EGID="root" SGID="root" FSGID="root" type=AVC msg=audit(1698311909.029:7111): avc: denied { read } for pid=18380 comm="grep" name="pta" dev="dm-0" ino=1447 scontext=system_u:system_r:pta_t:s0 tcontext=system_u:object_r:pta_etc_t:s0 tclass=file permissive=1 |
In case of denials that involve PTA types:
- Export all AVC audit messages to a file: “ausearch -m avc -r > avc_audit.log”.
- Contact support and provide the file containing all the AVC audit messages.