Allow logwatch work with opensmtpd #2812
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The commit addresses the following AVC denial:
type=PATH msg=audit(02/14/2025 16:18:03.070:27334) : item=0 name=/var/run/smtpd.sock inode=5339 dev=00:1b mode=socket,666 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:sendmail_var_run_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=SYSCALL msg=audit(02/14/2025 16:18:03.070:27334) : arch=unknown-elf-type(x86_64) syscall=read success=no exit=EACCES a0=0x3 a1=0x7fff3f878790 a2=0x6e a3=0x55fc6e981790 items=1 ppid=264760 pid=264850 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=unknown(917) sgid=unknown(917) fsgid=unknown(917) tty=(none) ses=unset comm=sendmail exe=/usr/sbin/smtpctl subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(02/14/2025 16:18:03.070:27334) : avc: denied { write } for pid=264850 comm=sendmail name=smtpd.sock dev="tmpfs" ino=5339 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sendmail_var_run_t:s0 tclass=sock_file permissive=0
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2342843