Bug 918810 - SELinux is preventing /usr/lib/cups/filter/hpcupsfax from 'getattr' accesses on the directory /var/log/hp/tmp.
Summary: SELinux is preventing /usr/lib/cups/filter/hpcupsfax from 'getattr' accesses ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:99a67f7bad4da57a948b37f219e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-06 22:55 UTC by help
Modified: 2013-03-07 10:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-07 10:30:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: screencast.ogv (782.58 KB, application/octet-stream)
2013-03-06 22:55 UTC, help
no flags Details

Description help 2013-03-06 22:55:39 UTC
Description of problem:
SELinux is preventing /usr/lib/cups/filter/hpcupsfax from 'getattr' accesses on the directory /var/log/hp/tmp.

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

If you believe that hpcupsfax should be allowed getattr access on the tmp 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 hpcupsfax /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                unconfined_u:object_r:hplip_var_log_t:s0
Target Objects                /var/log/hp/tmp [ dir ]
Source                        hpcupsfax
Source Path                   /usr/lib/cups/filter/hpcupsfax
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-81.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.9-205.fc18.i686 #1 SMP Sun Feb
                              24 21:10:19 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-03-06 17:41:56 EST
Last Seen                     2013-03-06 17:41:56 EST
Local ID                      b0e277af-ffcc-4b0a-8778-d620edcea122

Raw Audit Messages
type=AVC msg=audit(1362609716.397:3283): avc:  denied  { getattr } for  pid=22989 comm="hpcupsfax" path="/var/log/hp/tmp" dev="dm-1" ino=919695 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:hplip_var_log_t:s0 tclass=dir


type=SYSCALL msg=audit(1362609716.397:3283): arch=i386 syscall=stat64 success=no exit=EACCES a0=bf957668 a1=bf9575e0 a2=49a8c000 a3=bf957668 items=0 ppid=1537 pid=22989 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 ses=4294967295 tty=(none) comm=hpcupsfax exe=/usr/lib/cups/filter/hpcupsfax subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: hpcupsfax,cupsd_t,hplip_var_log_t,dir,getattr

audit2allow

#============= cupsd_t ==============
allow cupsd_t hplip_var_log_t:dir getattr;

audit2allow -R

#============= cupsd_t ==============
allow cupsd_t hplip_var_log_t:dir getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.9-205.fc18.i686
type:           libreport

Comment 1 help 2013-03-06 22:55:43 UTC
Created attachment 706285 [details]
File: screencast.ogv

Comment 2 Miroslav Grepl 2013-03-07 10:30:22 UTC
PLease update to the latest policy where we fixed this issue.


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