Bug 2247689 - Please add support for cdb map in sendmail
Summary: Please add support for cdb map in sendmail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1781181
TreeView+ depends on / blocked
 
Reported: 2023-11-02 19:30 UTC by Jaroslav Škarvada
Modified: 2024-08-11 04:49 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-40.27-1.fc40
Clone Of:
Environment:
Last Closed: 2024-08-11 04:49:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2294 0 None open F40 backports 2024-08-06 09:36:58 UTC

Description Jaroslav Škarvada 2023-11-02 19:30:24 UTC
This is related to the switch from libdb, bug 1781181.

Reproducible: Always

Steps to Reproduce:
1. build sendmail-8.17.2-4.fc40 --without db
2. dnf install sendmail
3. systemctl start sendmail
Actual Results:  
type=AVC msg=audit(1698951288.478:495): avc:  denied  { map } for  pid=5622 comm="sendmail" path="/etc/mail/access.cdb" dev="vda1" ino=37756176 scontext=system_u:system_r:sendmail_t:s0 tcontext=unconfined_u:object_r:etc_mail_t:s0 tclass=file permissive=1


Expected Results:  
No AVC

It also needs full R/W/CREATE/MAP access to:
/etc/mail/bitdomain.cdb
/etc/mail/uudomain.cdb
/etc/mail/genericstable.cdb
/etc/mail/userdb.cdb
/etc/mail/authinfo.cdb
/etc/mail/virtusertable.cdb
/etc/mail/access.cdb
/etc/mail/domaintable.cdb
/etc/mail/mailertable.cdb
/etc/aliases.cdb

It already should have full access to the *.db variant of the above files.

The above mentioned AVC was the only AVC I was able to get from it when running simple sanity tests.

Comment 1 Aoife Moloney 2024-02-15 23:03:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Fedora Update System 2024-08-07 10:34:15 UTC
FEDORA-2024-995d585c91 (selinux-policy-40.27-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-995d585c91

Comment 3 Fedora Update System 2024-08-08 04:46:44 UTC
FEDORA-2024-995d585c91 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-995d585c91`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-995d585c91

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-08-11 04:49:12 UTC
FEDORA-2024-995d585c91 (selinux-policy-40.27-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.