head	1.5;
access;
symbols
	RELENG_7_4_0_RELEASE:1.4.24.1
	RELENG_7_4:1.4.0.24
	RELENG_7_4_BP:1.4
	RELENG_7_3_0_RELEASE:1.4.22.1
	RELENG_7_3:1.4.0.22
	RELENG_7_3_BP:1.4
	RELENG_7_2_0_RELEASE:1.4.20.1
	RELENG_7_2:1.4.0.20
	RELENG_7_2_BP:1.4
	RELENG_7_1_0_RELEASE:1.4.18.1
	RELENG_6_4_0_RELEASE:1.4.16.1
	RELENG_7_1:1.4.0.18
	RELENG_7_1_BP:1.4
	RELENG_6_4:1.4.0.16
	RELENG_6_4_BP:1.4
	RELENG_7_0_0_RELEASE:1.4
	RELENG_6_3_0_RELEASE:1.4
	RELENG_7_0:1.4.0.14
	RELENG_7_0_BP:1.4
	RELENG_6_3:1.4.0.12
	RELENG_6_3_BP:1.4
	RELENG_7:1.4.0.10
	RELENG_7_BP:1.4
	RELENG_6_2_0_RELEASE:1.4
	RELENG_6_2:1.4.0.8
	RELENG_6_2_BP:1.4
	RELENG_5_5_0_RELEASE:1.1.6.1
	RELENG_5_5:1.1.6.1.0.4
	RELENG_5_5_BP:1.1.6.1
	RELENG_6_1_0_RELEASE:1.4
	RELENG_6_1:1.4.0.6
	RELENG_6_1_BP:1.4
	RELENG_6_0_0_RELEASE:1.4
	RELENG_6_0:1.4.0.4
	RELENG_6_0_BP:1.4
	RELENG_6:1.4.0.2
	RELENG_6_BP:1.4
	RELENG_5_4_0_RELEASE:1.1.6.1
	RELENG_5_4:1.1.6.1.0.2
	RELENG_5_4_BP:1.1.6.1
	RELENG_5_3_0_RELEASE:1.1
	RELENG_5_3:1.1.0.8
	RELENG_5_3_BP:1.1
	RELENG_5:1.1.0.6
	RELENG_5_BP:1.1
	RELENG_5_2_1_RELEASE:1.1
	RELENG_5_2_0_RELEASE:1.1
	RELENG_5_2:1.1.0.4
	RELENG_5_2_BP:1.1
	RELENG_5_1_0_RELEASE:1.1
	RELENG_5_1:1.1.0.2
	RELENG_5_1_BP:1.1;
locks; strict;
comment	@# @;


1.5
date	2008.08.24.10.01.22;	author ed;	state dead;
branches;
next	1.4;

1.4
date	2005.01.28.16.08.05;	author ru;	state Exp;
branches
	1.4.2.1
	1.4.10.1
	1.4.16.1
	1.4.18.1
	1.4.20.1
	1.4.22.1
	1.4.24.1;
next	1.3;

1.3
date	2004.12.21.08.47.04;	author ru;	state Exp;
branches;
next	1.2;

1.2
date	2004.10.24.15.32.34;	author ru;	state Exp;
branches;
next	1.1;

1.1
date	2003.01.02.20.44.41;	author jmallett;	state Exp;
branches
	1.1.6.1;
next	;

1.4.2.1
date	2012.11.17.07.40.55;	author svnexp;	state Exp;
branches;
next	;

1.4.10.1
date	2012.11.17.08.03.17;	author svnexp;	state Exp;
branches;
next	;

1.4.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.4.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.4.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.4.22.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.4.24.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.4.24.2;

1.4.24.2
date	2012.11.17.08.16.52;	author svnexp;	state Exp;
branches;
next	;

1.1.6.1
date	2005.02.13.07.23.15;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.5
log
@SVN rev 182105 on 2008-08-24 10:01:22Z by ed

Remove the now unneeded pt_chown utility.

Before we had a posix_openpt() that allocated PTY's with proper
permissions in place, we used this set-uid utility to change the
ownership of PTY slave devices to the real user ID of the process. This
utility was used to implement grantpt().

In my first designs of the MPSAFE TTY layer, I replaced this by adding
an ioctl() called TIOCGRANTPT, which was used to change the ownership.
I left the pt_chown utility, because older C libraries needed it to work
properly.

After some discussions back in June I changed the PTY code to set
permissions properly upon creation. Fortunately the previous grantpt()
implementation changed permissions by hand when pt_chown is not
installed, which always succeeds. This means grantpt() still works
properly, even though the set-uid utility is missing.

I've done tests with FreeBSD 5.2.1, FreeBSD 6.3 and FreeBSD 7.0 jails.
All of them still work if I remove pt_chown.

Reviewed by:	philip (ex-mentor)
@
text
@# $FreeBSD: src/libexec/pt_chown/Makefile,v 1.4 2005/01/28 16:08:05 ru Exp $

PROG=	pt_chown
BINOWN=	root
BINMODE=4555
NO_MAN=

.include <bsd.prog.mk>
@


1.4
log
@Let bsd.prog.mk set SRCS and MAN to their default values.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.4.10.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/libexec/pt_chown/Makefile 140941 2005-01-28 16:08:11Z ru $
@


1.4.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/libexec/pt_chown/Makefile 140941 2005-01-28 16:08:11Z ru $
@


1.4.24.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.4.24.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/libexec/pt_chown/Makefile 140941 2005-01-28 16:08:11Z ru $
@


1.4.22.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.4.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.4.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.4.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.3
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@a3 1
SRCS=	pt_chown.c
@


1.2
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d7 1
a7 1
NOMAN=
@


1.1
log
@Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
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@@
@
text
@d7 1
a7 1
NOMAN=	yes
@


1.1.6.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d7 1
a7 1
NOMAN=
@


