[Pkg-kbd-devel] Bug#610373: kbd: openvt -e fails with ioctl TIOCSCTTY: Operation not permitted

Michael Schutte michi at uiae.at
Tue Jan 18 21:28:38 UTC 2011


Hi Daniel!

On Mon, Jan 17, 2011 at 09:23:29PM -0500, Daniel Kahn Gillmor wrote:
> Running the following simple command fails (returns 1):
> 
>  openvt -e true
> 
> And it prints the following message on the allocated vt:
> 
>   ioctl TIOCSCTTY: Operation not permitted
> 
> Attached is an strace dump.
> 
> Thanks for maintaining kbd in debian!

And thank you for your report, I can confirm the problem.  The issue in
a nutshell is that without forking, openvt cannot create a session
because it already is a process group leader; this prohibits it from
using TIOCSCTTY.  I’ll have a closer look at how to fix this as soon as
I can.

Cheers,
-- 
Michael Schutte                   | michi@{uiae.at,debian.org}
Innsbruck, Austria                | happily accepting encrypted mail
OpenPGP: 0x16fb 517b a866 c3f6 8f11 1485 f3e4 122f 1D8C 261A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-kbd-devel/attachments/20110118/1fa532e2/attachment.pgp>


More information about the Pkg-kbd-devel mailing list