Really wierd 'more' interaction with 'newrole' and stderr...
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Fri May 26 18:08:47 UTC 2006
On Fri, 26 May 2006 13:53:47 EDT, Michael Sweet said:
> But don't programs like "more" open /dev/tty?
What 'more' uses:
int readch () {
unsigned char c;
errno = 0;
if (read (fileno(stderr), &c, 1) <= 0) {
if (errno != EINTR)
end_it(0);
else
c = otty.c_cc[VKILL];
}
return (c);
}
There's only one reference to /dev/tty, and it's re-opening stdin
to /dev/tty when spawning a 'vi'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-selinux-list/attachments/20060526/61a17d63/attachment.sig>
More information about the fedora-selinux-list
mailing list