[PATCH] linux ttyname and ttyname_r: return link if appropriate
Dmitry V. Levin
ldv@altlinux.org
Wed Aug 10 23:18:00 GMT 2016
On Wed, Aug 10, 2016 at 06:03:51PM -0500, Serge E. Hallyn wrote:
[...]
> But, even if we decide that part is dangerous, the part where we do not
> return /dev/pts/N when /proc/self/fd/M is from a different devpts mount
> than the /dev/pts/N in caller's namespace is I think very important, and
> should at least be separately applied.
I agree.
In that case, what should ttyname/ttyname_r set errno to? ENOTTY?
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160810/02fc7248/attachment.sig>
More information about the Libc-alpha
mailing list