Bug 222150 - in.ntalkd can't read /var/run/utmp
in.ntalkd can't read /var/run/utmp
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-01-10 13:08 EST by Dax Kelson
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-22 10:12:33 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 Dax Kelson 2007-01-10 13:08:59 EST
Description of problem:
Use of talk/ytalk is failing because the daemon in.ntalkd is being prevented
from reading /var/run/utmp.

Jan 10 10:51:43 station4 kernel: audit(1168451503.142:32): avc:  denied  { read
} for  pid=5885 comm="in.ntalkd" name="utmp" dev=sda6 ino=26529
tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file

Using: selinux-policy-targeted-2.4.6-17.fc6
Comment 1 Daniel Walsh 2007-01-10 15:02:08 EST
Could you please execute 

setenforce 0
chcon -t ktalkd_exec_t /usr/sbin/in.talkd 
service xinetd restart
Do your talk test.
setenforce 1

And send me the avc messages.

Comment 2 Dax Kelson 2007-01-10 15:17:13 EST
/usr/sbin/in.talkd is a symlink to /usr/sbin/in.ntalkd

Here are your messages you want:

Jan 10 13:15:46 station8 kernel: audit(1168460146.105:13): avc:  denied  {
getattr } for  pid=11992 comm="in.ntalkd" name="tty1" dev=tmpfs ino=1431
scontext=root:system_r:ktalkd_t:s0 tcontext=root:object_r:tty_device_t:s0
Jan 10 13:15:46 station8 kernel: audit(1168460146.105:14): avc:  denied  {
search } for  pid=11992 comm="in.ntalkd" name="/" dev=devpts ino=1
scontext=root:system_r:ktalkd_t:s0 tcontext=system_u:object_r:devpts_t:s0 tclass=dir
Jan 10 13:15:46 station8 kernel: audit(1168460146.105:15): avc:  denied  {
getattr } for  pid=11992 comm="in.ntalkd" name="1" dev=devpts ino=3
scontext=root:system_r:ktalkd_t:s0 tcontext=root:object_r:devpts_t:s0
Jan 10 13:15:46 station8 kernel: audit(1168460146.105:16): avc:  denied  { write
} for  pid=11998 comm="in.ntalkd" name="2" dev=devpts ino=4
scontext=root:system_r:ktalkd_t:s0 tcontext=root:object_r:devpts_t:s0
Comment 3 Daniel Walsh 2007-01-10 15:49:28 EST
Fixed in selinux-policy-2.4.6-25
Comment 4 Daniel Walsh 2007-08-22 10:12:33 EDT
Fixed in current release

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