about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2017-10-08 14:10:46 +0200
committerChristian Brauner <christian.brauner@ubuntu.com>2017-10-08 17:47:58 +0200
commit645ac9aaf89e3311949828546df6334322f48933 (patch)
treec3fcdd65127627d5f889060c145f238d953e2b1f /include
parent98e0742024d4c13c08a6076b3d119c250e7d0118 (diff)
downloadglibc-645ac9aaf89e3311949828546df6334322f48933.tar.gz
glibc-645ac9aaf89e3311949828546df6334322f48933.tar.xz
glibc-645ac9aaf89e3311949828546df6334322f48933.zip
openpty: use TIOCGPTPEER to open slave side fd
Newer kernels expose the ioctl TIOCGPTPEER [1] call to userspace which allows to
safely allocate a file descriptor for a pty slave based solely on the master
file descriptor. This allows us to avoid path-based operations and makes this
function a lot safer in the face of devpts mounts in different mount namespaces.

[1]: https://patchwork.kernel.org/patch/9760743/

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions