878f530ff8
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)
60 lines
787 B
Makefile
60 lines
787 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SUBDIR= atrun \
|
|
bootpd \
|
|
comsat \
|
|
fingerd \
|
|
ftpd \
|
|
getty \
|
|
lukemftpd \
|
|
${_mail.local} \
|
|
makekey \
|
|
${_mknetid} \
|
|
pppoed \
|
|
rbootd \
|
|
revnetgroup \
|
|
${_rlogind} \
|
|
rpc.rquotad \
|
|
rpc.rstatd \
|
|
rpc.rusersd \
|
|
rpc.rwalld \
|
|
rpc.sprayd \
|
|
${_rshd} \
|
|
${_rtld-elf} \
|
|
save-entropy \
|
|
${_smrsh} \
|
|
talkd \
|
|
tcpd \
|
|
telnetd \
|
|
tftpd \
|
|
${_tftp-proxy} \
|
|
${_ypxfr}
|
|
|
|
.if ${MK_NIS} != "no"
|
|
_mknetid= mknetid
|
|
_ypxfr= ypxfr
|
|
.endif
|
|
|
|
.if ${MK_PF} != "no"
|
|
_tftp-proxy= tftp-proxy
|
|
.endif
|
|
|
|
.if !defined(NO_PIC) && !defined(NO_RTLD)
|
|
_rtld-elf= rtld-elf
|
|
.endif
|
|
|
|
.if ${MK_RCMDS} != "no"
|
|
_rlogind= rlogind
|
|
_rshd= rshd
|
|
.endif
|
|
|
|
.if ${MK_SENDMAIL} != "no"
|
|
_mail.local= mail.local
|
|
_smrsh= smrsh
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|