Bug 1516816 - [antivirus_t] SELinux is preventing /usr/sbin/amavi from map access on the file /var/spool/amavisd/db/__db.001
Summary: [antivirus_t] SELinux is preventing /usr/sbin/amavi from map access on the fi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-23 11:57 UTC by Juan Orti
Modified: 2018-01-02 16:47 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-283.19.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-02 16:47:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Juan Orti 2017-11-23 11:57:15 UTC
amavisd-new cannot start in F27. I don't know why the binary is truncated, it should be /usr/sbin/amavisd

SELinux is preventing /usr/sbin/amavi from map access on the file /var/spool/amavisd/db/__db.001.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that amavi should be allowed map access on the __db.001 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c '/usr/sbin/amavi' --raw | audit2allow -M my-usrsbinamavi
# semodule -X 300 -i my-usrsbinamavi.pp


Additional Information:
Source Context                system_u:system_r:antivirus_t:s0
Target Context                system_u:object_r:antivirus_db_t:s0
Target Objects                /var/spool/amavisd/db/__db.001 [ file ]
Source                        /usr/sbin/amavi
Source Path                   /usr/sbin/amavi
Port                          <Unknown>
Host                          argon
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.16.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     argon
Platform                      Linux argon 4.13.13-300.fc27.x86_64 #1 SMP Wed Nov
                              15 15:47:50 UTC 2017 x86_64 x86_64
Alert Count                   271183
First Seen                    2017-11-11 22:13:17 CET
Last Seen                     2017-11-23 12:21:14 CET
Local ID                      5ac9dafb-8eef-447e-b279-771ee816437a

Raw Audit Messages
type=AVC msg=audit(1511436074.107:334787): avc:  denied  { map } for  pid=6219 comm="/usr/sbin/amavi" path="/var/spool/amavisd/db/__db.001" dev="dm-0" ino=9088160 scontext=system_u:system_r:antivirus_t:s0 tcontext=system_u:object_r:antivirus_db_t:s0 tclass=file permissive=0


Hash: /usr/sbin/amavi,antivirus_t,antivirus_db_t,file,map

Comment 1 Alan Hamilton 2017-11-25 19:20:45 UTC
I'm getting it too. audit2allow generates

#============= antivirus_t ==============
allow antivirus_t antivirus_db_t:file map;

Comment 2 Fedora Update System 2017-12-13 08:25:40 UTC
selinux-policy-3.13.1-283.18.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 3 Fedora Update System 2017-12-14 11:11:38 UTC
selinux-policy-3.13.1-283.18.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 4 Fedora Update System 2017-12-20 11:23:28 UTC
selinux-policy-3.13.1-283.19.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 5 Fedora Update System 2017-12-21 20:20:44 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 6 Fedora Update System 2018-01-02 16:47:30 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, 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.