Bug 748106 - SELinux is preventing /usr/bin/less from 'read' accesses on the file /root/.lesshst.
Summary: SELinux is preventing /usr/bin/less from 'read' accesses on the file /root/.l...
Keywords:
Status: CLOSED DUPLICATE of bug 748085
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:97eb4396b3f7efbb8450468cab8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-22 01:28 UTC by James Cape
Modified: 2011-10-24 05:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-24 05:46:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Cape 2011-10-22 01:28:40 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc10.git0.1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/less from 'read' accesses on the file /root/.lesshst.
time:           Fri Oct 21 20:28:31 2011

description:
:SELinux is preventing /usr/bin/less from 'read' accesses on the file /root/.lesshst.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that less should be allowed read access on the .lesshst 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 less /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:admin_home_t:s0
:Target Objects                /root/.lesshst [ file ]
:Source                        less
:Source Path                   /usr/bin/less
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           less-444-2.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-40.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux orwell.ignore-your.tv
:                              3.1.0-0.rc10.git0.1.fc16.x86_64 #1 SMP Wed Oct 19
:                              05:02:17 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 21 Oct 2011 08:23:23 PM CDT
:Last Seen                     Fri 21 Oct 2011 08:23:23 PM CDT
:Local ID                      3a884f33-b156-4337-9a70-38bc6f69b1b1
:
:Raw Audit Messages
:type=AVC msg=audit(1319246603.918:432): avc:  denied  { read } for  pid=4897 comm="less" name=".lesshst" dev=dm-1 ino=326740 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=file
:
:
:type=AVC msg=audit(1319246603.918:432): avc:  denied  { open } for  pid=4897 comm="less" name=".lesshst" dev=dm-1 ino=326740 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1319246603.918:432): arch=x86_64 syscall=open success=yes exit=ESRCH a0=2147470 a1=0 a2=1b6 a3=7fff540d3240 items=0 ppid=4884 pid=4897 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=4294967295 comm=less exe=/usr/bin/less subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: less,xdm_t,admin_home_t,file,read
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t admin_home_t:file { read open };
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t admin_home_t:file { read open };
:

Comment 1 Miroslav Grepl 2011-10-24 05:46:05 UTC

*** This bug has been marked as a duplicate of bug 748085 ***


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