Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two procmail/sendmail denials #2475

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

WOnder93
Copy link
Member

No description provided.

Fixes:
type=PROCTITLE msg=audit(08/12/2024 10:52:43.901:605) : proctitle=/usr/bin/procmail -a  DEFAULT=/home/bobo/Maildir/ MAILDIR=/home/bobo/Maildir/
type=PATH msg=audit(08/12/2024 10:52:43.901:605) : item=1 name=/lib64/ld-linux-x86-64.so.2 inode=4436472 dev=fd:02 mode=file,755 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:ld_so_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(08/12/2024 10:52:43.901:605) : item=0 name=/usr/bin/procmail inode=4915653 dev=fd:02 mode=file,755 ouid=root ogid=mail rdev=00:00 obj=system_u:object_r:procmail_exec_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=CWD msg=audit(08/12/2024 10:52:43.901:605) : cwd=/var/spool/postfix
type=EXECVE msg=audit(08/12/2024 10:52:43.901:605) : argc=5 a0=/usr/bin/procmail a1=-a a2= a3=DEFAULT=/home/bobo/Maildir/ a4=MAILDIR=/home/bobo/Maildir/
type=SYSCALL msg=audit(08/12/2024 10:52:43.901:605) : arch=x86_64 syscall=execve success=yes exit=0 a0=0x5639d4f70990 a1=0x5639d4f6f080 a2=0x5639d4f70f10 a3=0x8 items=2 ppid=27104 pid=27106 auid=unset uid=bobo gid=bobo euid=bobo suid=bobo fsuid=bobo egid=bobo sgid=bobo fsgid=bobo tty=(none) ses=unset comm=procmail exe=/usr/bin/procmail subj=system_u:system_r:procmail_t:s0 key=(null)
type=AVC msg=audit(08/12/2024 10:52:43.901:605) : avc:  denied  { read } for  pid=27106 comm=procmail path=/etc/aliases.lmdb dev="vda2" ino=2225144 scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:object_r:etc_aliases_t:s0 tclass=file permissive=0

Resolves: https://issues.redhat.com/browse/RHEL-54014
Signed-off-by: Ondrej Mosnacek <[email protected]>
Fixes:
type=PROCTITLE msg=audit(11/15/2024 02:41:04.796:891) : proctitle=sendmail: startup with localhost
type=MMAP msg=audit(11/15/2024 02:41:04.796:891) : fd=5 flags=MAP_SHARED
type=SYSCALL msg=audit(11/15/2024 02:41:04.796:891) : arch=x86_64 syscall=mmap success=no exit=EACCES(Permission denied) a0=0x0 a1=0x896 a2=PROT_READ a3=MAP_SHARED items=0 ppid=12782 pid=12850 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=smmsp sgid=smmsp fsgid=smmsp tty=(none) ses=unset comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:sendmail_t:s0 key=(null)
type=AVC msg=audit(11/15/2024 02:41:04.796:891) : avc:  denied  { map } for  pid=12850 comm=sendmail path=/etc/mail/access.cdb dev="vda2" ino=16783732 scontext=system_u:system_r:sendmail_t:s0 tcontext=unconfined_u:object_r:etc_mail_t:s0 tclass=file permissive=0

Related: https://issues.redhat.com/browse/RHEL-54014
Signed-off-by: Ondrej Mosnacek <[email protected]>
@zpytela
Copy link
Contributor

zpytela commented Dec 11, 2024

Merging, thank you.

@zpytela zpytela merged commit 6fea4d4 into fedora-selinux:rawhide Dec 11, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants