summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/grantpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some now-unused macros.jhb2008-01-151-3/+1
| | | | MFC after: 1 week
* Put back the openpty(3) and ptsname(3) fixes but don't disable ptsname(3)jhb2008-01-151-46/+31
| | | | | on pts(4) devices this time. This fixes the issues while leaving pts(4) enabled on HEAD.
* Back out last commit, since it accidentally broke pts.cperciva2008-01-151-37/+48
| | | | | The security fix will be re-committed soon, hopefully without breaking anything.
* Fix issues which allow snooping on ptys. [08:01]cperciva2008-01-141-48/+37
| | | | | | | Fix an off-by-one error in inet_network(3). [08:02] Security: FreeBSD-SA-08:01.pty Security: FreeBSD-SA-08:02.libc
* Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends:jhb2007-12-211-22/+23
| | | | | | | | | | - Use PTY* for all pty(4) related constants. - Use PTMX* for all pts(4) related constants. - Consistently use _PATH_DEV PTMX rather than "/dev/ptmx". - Revert 1.7 and properly fix it by using the correct prefix string for pts(4) masters. MFC after: 3 days
* Update posix_openpt(3) to handle 512 ptys. This was missed in the earlierjhb2007-12-131-2/+2
| | | | | | pty(4) changes. MFC after: 3 days
* Remove extra slash from pty slave device name returned by ptsname.kan2006-02-131-1/+1
|
* If the sysctl kern.pts.enable doesn't exist, check that /dev/ptmx is there,cognet2006-01-291-2/+7
| | | | | | and if so, use the pts system. Suggested by: rwatson
* ptsname() bits for pts.cognet2006-01-261-5/+45
|
* Fix ptsname(3) by converting it to use devname(3) to obtain the name ofmarcus2005-07-071-3/+4
| | | | | | | | | | | | a tty device instead of the legacy minor number approach. This is known to fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT. Thanks to scottl for the snprintf() approach idea. Reviewed by: phk Tested by: pav mich Approved by: re (scottl)
* Do not require the pty(4) majors to be anything in particular.green2005-03-041-3/+0
|
* Fix three warnings:tjr2003-01-041-2/+2
| | | | | | o #include <stdio.h> to make sprintf()'s prototype visible. o Remove unused variable: sbuf. o Don't use assignment as truth value.
* Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akinjmallett2003-01-021-0/+259
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty. Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@
OpenPOWER on IntegriCloud