Bug 1007130 - SELinux is preventing /usr/sbin/tcsd from 'read' accesses on the file utmp.
Summary: SELinux is preventing /usr/sbin/tcsd from 'read' accesses on the file utmp.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d23b995738566518ad64c6de15e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-12 01:20 UTC by William Brown
Modified: 2015-06-10 18:32 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.4.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 00:33:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description William Brown 2013-09-12 01:20:18 UTC
Description of problem:
Attempting to enable physical presence via tpm tools. 

tpm_setpresence --assert

SELinux is preventing /usr/sbin/tcsd from 'read' accesses on the file utmp.

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

If you believe that tcsd should be allowed read access on the utmp 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 tcsd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:tcsd_t:s0
Target Context                system_u:object_r:initrc_var_run_t:s0
Target Objects                utmp [ file ]
Source                        tcsd
Source Path                   /usr/sbin/tcsd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           trousers-0.3.10-3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.1.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.10-200.fc19.x86_64 #1 SMP Thu
                              Aug 29 19:05:45 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-09-12 10:47:37 CST
Last Seen                     2013-09-12 10:47:37 CST
Local ID                      7029da83-7be6-4108-997b-2841f5654d3b

Raw Audit Messages
type=AVC msg=audit(1378948657.808:448): avc:  denied  { read } for  pid=2438 comm="tcsd" name="utmp" dev="tmpfs" ino=14261 scontext=system_u:system_r:tcsd_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1378948657.808:448): arch=x86_64 syscall=open success=no exit=EACCES a0=7fd54c5da8c4 a1=80000 a2=7fd54c5da8b5 a3=7fd5440013c0 items=0 ppid=1 pid=2438 auid=4294967295 uid=59 gid=0 euid=59 suid=59 fsuid=59 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=tcsd exe=/usr/sbin/tcsd subj=system_u:system_r:tcsd_t:s0 key=(null)

Hash: tcsd,tcsd_t,initrc_var_run_t,file,read

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.10-200.fc19.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2013-09-12 12:14:57 UTC
fixed

Comment 2 Fedora Update System 2013-09-16 17:15:15 UTC
selinux-policy-3.12.1-74.4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.4.fc19

Comment 3 Fedora Update System 2013-09-18 13:02:02 UTC
Package selinux-policy-3.12.1-74.4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-74.4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17007/selinux-policy-3.12.1-74.4.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-23 00:33:29 UTC
selinux-policy-3.12.1-74.4.fc19 has been pushed to the Fedora 19 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.