Bug 894427 - SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/share/texlive/texmf/web2c/mktexdir.
Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8653af0571a3970da98c4f00578...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-11 17:42 UTC by Matthew Saltzman
Modified: 2013-02-12 05:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-12 05:08:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-01-11 17:42 UTC, Matthew Saltzman
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-01-11 17:42 UTC, Matthew Saltzman
no flags Details

Description Matthew Saltzman 2013-01-11 17:42:42 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.11-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/share/texlive/texmf/web2c/mktexdir.
:
:*****  Plugin leaks (86.2 confidence) suggests  ******************************
:
:If you want to ignore bash trying to execute access the mktexdir file, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/bin/bash /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (14.7 confidence) suggests  ***************************
:
:If you believe that bash should be allowed execute access on the mktexdir 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 mktexpk /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:usr_t:s0
:Target Objects                /usr/share/texlive/texmf/web2c/mktexdir [ file ]
:Source                        mktexpk
:Source Path                   /usr/bin/bash
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           bash-4.2.39-2.fc17.x86_64
:Target RPM Packages           tex-kpathsea-svn27341-1.noarch
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.11-1.fc17.x86_64 #1 SMP Mon
:                              Dec 17 22:16:35 UTC 2012 x86_64 x86_64
:Alert Count                   85
:First Seen                    2013-01-11 08:09:44 MST
:Last Seen                     2013-01-11 08:09:59 MST
:Local ID                      4b21032b-3387-4706-8922-54a4a71f53c2
:
:Raw Audit Messages
:type=AVC msg=audit(1357916999.769:963): avc:  denied  { execute } for  pid=2756 comm="mktextfm" name="mktexdir" dev="dm-0" ino=537033 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1357916999.769:963): arch=x86_64 syscall=access success=no exit=EACCES a0=1d2bdc0 a1=1 a2=7fff0e718ef0 a3=18 items=0 ppid=2746 pid=2756 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=mktextfm exe=/usr/bin/bash subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)
:
:Hash: mktexpk,thumb_t,usr_t,file,execute
:
:audit2allow
:
:#============= thumb_t ==============
:allow thumb_t usr_t:file execute;
:
:audit2allow -R
:
:#============= thumb_t ==============
:allow thumb_t usr_t:file execute;
:

Comment 1 Matthew Saltzman 2013-01-11 17:42:44 UTC
Created attachment 677014 [details]
File: type

Comment 2 Matthew Saltzman 2013-01-11 17:42:47 UTC
Created attachment 677015 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-01-14 10:23:45 UTC
Added.

commit ad0f09e402dd16140783d19fb57b381370df33bd
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 14 11:22:32 2013 +0100

    Add labeling for texlive bash scripts

Comment 4 Fedora Update System 2013-02-04 22:04:09 UTC
selinux-policy-3.10.0-167.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-167.fc17

Comment 5 Fedora Update System 2013-02-05 17:00:06 UTC
Package selinux-policy-3.10.0-167.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-167.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1971/selinux-policy-3.10.0-167.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-02-12 05:08:28 UTC
selinux-policy-3.10.0-167.fc17 has been pushed to the Fedora 17 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.