Bug 1007130 - SELinux is preventing /usr/sbin/tcsd from 'read' accesses on the file utmp.
SELinux is preventing /usr/sbin/tcsd from 'read' accesses on the file utmp.
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-09-11 21:20 EDT by William Brown
Modified: 2015-06-10 14:32 EDT (History)
4 users (show)

See Also:
Fixed In Version: selinux-policy-3.12.1-74.4.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-22 20:33:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description William Brown 2013-09-11 21:20:18 EDT
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.
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 08:14:57 EDT
Comment 2 Fedora Update System 2013-09-16 13:15:15 EDT
selinux-policy-3.12.1-74.4.fc19 has been submitted as an update for Fedora 19.
Comment 3 Fedora Update System 2013-09-18 09:02:02 EDT
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:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2013-09-22 20:33:29 EDT
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.