Bug ID 2567293: [SELinux] AVC denial: logrotate_t denied { getattr } on /shared/.tp_edr_mon_logs/tp_edr_mon.log (default_t)

Last Modified: Nov 23, 2026

Affected Product(s):
BIG-IP TMOS(all modules)

Known Affected Versions:
17.1.3.6, 17.1.3.7, 17.5.1.10, 17.5.1.11, 21.1.0.3, 21.1.0.4

Opened: Oct 08, 2026

Severity: 1-Blocking

Symptoms

While executing the tpedrmon log rotation command: /usr/sbin/logrotate -s /var/lib/logrotate-tpedrmon.status /etc/logrotate.d/tpedrmon The command immediately fails with Permission denied (even as root): [root@localhost:ModuleNotLicensed::Active:Standalone] config # /usr/sbin/logrotate -s /var/lib/logrotate-tpedrmon.status /etc/logrotate.d/tpedrmon error: stat of /shared/.tp_edr_mon_logs/tp_edr_mon.log failed: Permission denied Simultaneously, an SELinux AVC denial is logged in /var/log/auditd/audit.log: type=SYSCALL msg=audit(1791476642.660:6551): arch=c000003e syscall=6 success=no exit=-13 comm="logrotate" exe="/usr/sbin/logrotate" subj=unconfined_u:unconfined_r:logrotate_t:s0-s0:c0.c1023 type=AVC msg=audit(1791476642.660:6551): avc: denied { getattr } for pid=24814 comm="logrotate" path="/shared/.tp_edr_mon_logs/tp_edr_mon.log" dev="dm-1" ino=524297 scontext=unconfined_u:unconfined_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file

Impact

The log rotation job for tpedrmon is generating SELinux AVC denials, causing the log rotation to fail

Conditions

The denials occur each time the periodic log rotation job for tpedrmon runs. The logrotate process (logrotate_t) is denied { getattr } access to the file /shared/.tp_edr_mon_logs/tp_edr_mon.log because the log file has the generic SELinux context default_t:s0 instead of an appropriate log context

Workaround

Modify default_t context to var_log_t in selinux config files: /shared/\.tp_edr_mon_logs(/.*)? system_u:object_r:var_log_t:s0 To modify the security context, use the following command line # semanage fcontext -a -t var_log_t '/shared/\.tp_edr_mon_logs(/.*)?' # semanage fcontext -m -t var_log_t '/shared/\.tp_edr_mon_logs(/.*)?' # restorecon -R /shared/.tp_edr_mon_logs To verify the security context change, # stat -c '%C' "/shared/.tp_edr_mon_logs/tp_edr_mon.log" 2>/dev/null | cut -d: -f3 var_log_t # ls -Zd /shared/.tp_edr_mon_logs drwx------. root root system_u:object_r:var_log_t:s0 /shared/.tp_edr_mon_logs # ls -Z /shared/.tp_edr_mon_logs/tp_edr_mon.log -rw-------. root root system_u:object_r:var_log_t:s0 /shared/.tp_edr_mon_logs/tp_edr_mon.log The above change will not survive an upgrade Impact of workaround: This procedure has no impact on the system

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips