Bug 1225660 - SELinux is preventing /usr/sbin/bitlbee from 'create' accesses on the directory purple.
Summary: SELinux is preventing /usr/sbin/bitlbee from 'create' accesses on the directo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:38db7405f8ea12139ab0e8d7902...
: 1344903 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-27 23:11 UTC by Dawid Zamirski
Modified: 2016-07-14 00:24 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-158.20.fc23 selinux-policy-3.13.1-158.21.fc23
Clone Of:
Environment:
Last Closed: 2016-07-14 00:24:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dawid Zamirski 2015-05-27 23:11:19 UTC
Description of problem:
Tried to connect to bitlbee service.
SELinux is preventing /usr/sbin/bitlbee from 'create' accesses on the directory purple.

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

If you believe that bitlbee should be allowed create access on the purple directory 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:
# grep bitlbee /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:bitlbee_t:s0
Target Context                system_u:object_r:bitlbee_var_t:s0
Target Objects                purple [ dir ]
Source                        bitlbee
Source Path                   /usr/sbin/bitlbee
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bitlbee-3.2.2-5.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-301.fc22.x86_64 #1 SMP Thu
                              May 21 13:10:33 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-05-27 19:10:33 EDT
Last Seen                     2015-05-27 19:10:38 EDT
Local ID                      28eb41ec-aa80-44d4-9b17-60604d58741d

Raw Audit Messages
type=AVC msg=audit(1432768238.738:1000): avc:  denied  { create } for  pid=22099 comm="bitlbee" name="purple" scontext=system_u:system_r:bitlbee_t:s0 tcontext=system_u:object_r:bitlbee_var_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1432768238.738:1000): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=7fe69d799280 a1=1c0 a2=ffffffffffffff98 a3=1e2 items=0 ppid=21333 pid=22099 auid=4294967295 uid=980 gid=967 euid=980 suid=980 fsuid=980 egid=967 sgid=967 fsgid=967 tty=(none) ses=4294967295 comm=bitlbee exe=/usr/sbin/bitlbee subj=system_u:system_r:bitlbee_t:s0 key=(null)

Hash: bitlbee,bitlbee_t,bitlbee_var_t,dir,create

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-301.fc22.x86_64
type:           libreport

Comment 1 Mauricio Teixeira 2015-09-21 11:19:30 UTC
Description of problem:
Updated to latest selinux, reboot, error shows up.

Version-Release number of selected component:
selinux-policy-3.13.1-128.13.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-201.fc22.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2016-06-20 12:01:08 UTC
*** Bug 1344903 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2016-06-22 15:26:49 UTC
selinux-policy-3.13.1-158.20.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4c9c2badcb

Comment 4 Fedora Update System 2016-06-22 22:58:44 UTC
selinux-policy-3.13.1-158.20.fc23 has been pushed to the Fedora 23 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-2016-4c9c2badcb

Comment 5 Fedora Update System 2016-07-02 20:54:45 UTC
selinux-policy-3.13.1-158.21.fc23 has been pushed to the Fedora 23 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-2016-7bed6e7c72

Comment 6 Fedora Update System 2016-07-14 00:23:32 UTC
selinux-policy-3.13.1-158.21.fc23 has been pushed to the Fedora 23 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.