Bug#651030: getty: 2.20.1 regression: reports 'cannot get controlling tty: Operation not permitted'

2013-11-14 Thread Andras Korn
On Thu, Nov 14, 2013 at 03:00:57PM +0100, Andras Korn wrote:

> > It looks like Hilko forgot to Cc you; have you seen this on 2.20.1-5
> > or later?
> 
> I have been avoiding getty ever since, so I can't say.
> 
> I'll see if I can get around to testing it today.

I couldn't reproduce the bug with 2.20.1-5.5.

Andras

-- 
  It doesn't matter what you need: emacs is always overkill.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#651030: getty: 2.20.1 regression: reports 'cannot get controlling tty: Operation not permitted'

2011-12-04 Thread Andras Korn
Package: util-linux
Version: 2.20.1-1
Severity: important

Hi,

util-linux 2.20.1-1 getty(8) fails on two different boxes in the following way:

execve("/sbin/getty", ["getty", "38400", "tty10", "linux"], [/* 19 vars */]) = 0
[...]
chown("/dev/tty10", 0, 5)   = 0
chmod("/dev/tty10", 0660)   = 0
open("/dev/tty10", O_RDWR|O_NOCTTY|O_NONBLOCK) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 10), ...}) = 0
ioctl(3, TIOCGSID, 0x7fff50694eac)  = -1 ENOTTY (Inappropriate ioctl for 
device)
ioctl(3, TIOCSCTTY) = -1 EPERM (Operation not permitted)
[...]
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 4
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
sendto(4, "<83>Dec  5 07:49:42 getty[4289]: /dev/tty10: cannot get controlling 
tty: Operation not permitted", 96, MSG_NOSIGNAL, NULL, 0) = 96
close(4)= 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({10, 0}, 0x7fff50694db0)  = 0
exit_group(1)   = ?

The corresponding bit from 2.19.1-5 (which still works) reads:

execve("/sbin/getty", ["getty", "38400", "tty10", "linux"], [/* 34 vars */]) = 0
[...]
chdir("/dev")   = 0
stat("tty10", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 10), ...}) = 0
close(0)= 0
open("tty10", O_RDWR|O_NONBLOCK)= 0
dup(0)  = 1
dup(0)  = 2
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
chown("tty10", 0, 0)= 0
chmod("tty10", 0600)= 0
ioctl(0, TIOCSPGRP, [6250]) = 0
ioctl(0, TCFLSH, 0x2)   = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 -opost -isig -icanon -echo 
...}) = 0
fcntl(0, F_GETFL)   = 0x8802 (flags 
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE)   = 0
fcntl(1, F_GETFL)   = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(1, F_SETFL, O_RDWR|O_LARGEFILE)   = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fffd18b7690)   = 0
ioctl(0, TCFLSH, 0) = 0
uname({sys="Linux", node="hellgate", ...}) = 0
write(1, "\r\n", 2) = 2
open("/etc/issue", O_RDONLY)= 3
[...]

Fwiw, this seems similar to
https://bugzilla.novell.com/show_bug.cgi?id=447289

Relevant-seeming bits from kernel config:

box #1 (3.1.1-vs2.3.2.1):

CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_LP_CONSOLE=y
CONFIG_VIRTIO_CONSOLE=m
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=m
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set

box #2 (3.0.4-vs2.3.1-pre10.1):

CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_VIRTIO_CONSOLE is not set
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y

Justification for severity: breaks local console logins.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.1-vs2.3.2.1-hellgate (SMP w/3 CPU cores)
Locale: LANG=C, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages util-linux depends on:
ii  debconf [debconf-2.0]  1.5.41  
ii  dpkg   1.16.1.2
ii  initscripts2.88dsf-13.13   
ii  install-info   4.13a.dfsg.1-8  
ii  libblkid1  2.20.1-1
ii  libc6  2.13-21 
ii  libncurses55.9-4   
ii  libselinux12.1.0-4 
ii  libslang2  2.2.4-3 
ii  libtinfo5  5.9-4   
ii  libuuid1   2.20.1-1
ii  lsb-base   3.2-28  
ii  tzdata 2011n-1 
ii  zlib1g 1:1.2.3.4.dfsg-3

util-linux recommends no packages.

Versions of packages util-linux suggests:
pn  dosfstools  3.0.12-1
pn  kbd 1.15.3-7
pn  util-linux-locales

-- debconf information:
  util-linux/noauto-with-nonzero-passnum:

Best regards,

-- 
 Andras Korn 
A vereb tud repulni, megis mennyit ul az agon!



-- 
To UNS