Bug 994994
| Summary: | SELinux is preventing /usr/bin/python2.7 from 'open' accesses on the file /var/lib/rpm/.dbenv.lock. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kapoios Kanenas <firewalkergr> |
| Component: | hplip | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | dominick.grift, dwalsh, firewalkergr, jpopelka, mgrepl, twaugh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a758b42306b8e4c460c451e522c07d78f4d47402ea56fdab8d584398e7db6917 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-24 11:47:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Did you need to switch to permissive mode? No I didn't. Though I added the rule(s) generated by audit2allow but still didn't work. Any idea why hpfax would be reading the rpm database? No, none. There is some code to do that (installer/core_install.py can run yum) but I can't see how hpfax could end up there. Well Kapoios is this still happening? I would not modify your policy with audit2allow. This should not be needed. No. I can't reproduce this issue anymore. |
Description of problem: Trying to send a fax with hplip. hp-sendfax -n -fXXXX Documents/afile.pdf SELinux is preventing /usr/bin/python2.7 from 'open' accesses on the file /var/lib/rpm/.dbenv.lock. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that python2.7 should be allowed open access on the .dbenv.lock 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: # grep hpfax /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:cupsd_t:s0-s0:c0.c1023 Target Context system_u:object_r:rpm_var_lib_t:s0 Target Objects /var/lib/rpm/.dbenv.lock [ file ] Source hpfax Source Path /usr/bin/python2.7 Port <Άγνωστο> Host (removed) Source RPM Packages python-2.7.5-3.fc19.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-69.fc19.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 3.10.4-300.fc19.x86_64 #1 SMP Tue Jul 30 11:29:05 UTC 2013 x86_64 x86_64 Alert Count 5 First Seen 2013-08-07 01:02:15 CEST Last Seen 2013-08-08 13:13:39 CEST Local ID 458788e3-bc0b-464f-986b-48a2a6035ab8 Raw Audit Messages type=AVC msg=audit(1375960419.568:2742): avc: denied { open } for pid=23443 comm="hpfax" path="/var/lib/rpm/.dbenv.lock" dev="sda3" ino=4194418 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file type=SYSCALL msg=audit(1375960419.568:2742): arch=x86_64 syscall=open success=yes exit=ENOEXEC a0=13a1380 a1=42 a2=1a4 a3=0 items=0 ppid=1850 pid=23443 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 ses=4294967295 tty=(none) comm=hpfax exe=/usr/bin/python2.7 subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null) Hash: hpfax,cupsd_t,rpm_var_lib_t,file,open Additional info: reporter: libreport-2.1.6 hashmarkername: setroubleshoot kernel: 3.10.4-300.fc19.x86_64 type: libreport