1994-05-27 05:00:24 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
|
|
|
|
|
|
LIB= util
|
1996-01-01 08:27:41 +00:00
|
|
|
SHLIB_MAJOR= 2
|
1997-05-13 08:51:49 +00:00
|
|
|
SHLIB_MINOR= 2
|
1997-08-26 14:13:02 +00:00
|
|
|
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
|
Summary of login.conf support changes:
o Incorporated BSDI code and enhancements, better logging for error
checking (which has been shown to be a problem, and is therefore
justified, imho); also some minor things we were missing, including
better quad_t math, which checks for under/overflows.
o setusercontext() now allows user resource limit overrides, but
does this AFTER dropping root privs, to restrict the user to
droping hard limits and set soft limits within the kernel's
allowed user limits.
o umask() only set once, and only if requested.
o add _secure_path(), and use in login.conf to guard against
symlinks etc. and non-root owned or non-user owned files being
used. Derived from BSDI contributed code.
o revamped authentication code to BSDI's latest api, which
includes deleting authenticate() and adding auth_check()
and a few other functions. This is still marked as depecated
in BSDI, but is included for completeness. No other source
in the tree uses this anyway, so it is now bracketed with
#ifdef LOGIN_CAP_AUTH which is by default not defined. Only
auth_checknologin() and auth_cat() are actually used in
module login_auth.c.
o AUTH_NONE definition removed (collided with other includes
in the tree). [bde]
o BSDI's login_getclass() now accepts a char *classname
parameter rather than struct passwd *pwd. We now do likewise,
but added login_getpwclass() for (sort of) backwards
compatiblity, namely because we handle root as a special
case for the default class. This will require quite a few
changes elsewhere in the source tree.
o We no longer pretend to support rlim_t as a long type.
o Revised code formatting to be more bsd-ish style.
1997-05-10 18:55:38 +00:00
|
|
|
#CFLAGS+=LOGIN_CAP_AUTH
|
1997-01-04 16:50:08 +00:00
|
|
|
SRCS= login.c login_tty.c logout.c logwtmp.c pty.c setproctitle.c \
|
1997-03-30 12:12:20 +00:00
|
|
|
login_cap.c login_class.c login_auth.c login_times.c login_ok.c \
|
1997-08-31 20:09:39 +00:00
|
|
|
_secure_path.c uucplock.c
|
1997-01-04 16:50:08 +00:00
|
|
|
MAN3+= login.3 login_tty.3 logout.3 logwtmp.3 pty.3 setproctitle.3 \
|
Summary of login.conf support changes:
o Incorporated BSDI code and enhancements, better logging for error
checking (which has been shown to be a problem, and is therefore
justified, imho); also some minor things we were missing, including
better quad_t math, which checks for under/overflows.
o setusercontext() now allows user resource limit overrides, but
does this AFTER dropping root privs, to restrict the user to
droping hard limits and set soft limits within the kernel's
allowed user limits.
o umask() only set once, and only if requested.
o add _secure_path(), and use in login.conf to guard against
symlinks etc. and non-root owned or non-user owned files being
used. Derived from BSDI contributed code.
o revamped authentication code to BSDI's latest api, which
includes deleting authenticate() and adding auth_check()
and a few other functions. This is still marked as depecated
in BSDI, but is included for completeness. No other source
in the tree uses this anyway, so it is now bracketed with
#ifdef LOGIN_CAP_AUTH which is by default not defined. Only
auth_checknologin() and auth_cat() are actually used in
module login_auth.c.
o AUTH_NONE definition removed (collided with other includes
in the tree). [bde]
o BSDI's login_getclass() now accepts a char *classname
parameter rather than struct passwd *pwd. We now do likewise,
but added login_getpwclass() for (sort of) backwards
compatiblity, namely because we handle root as a special
case for the default class. This will require quite a few
changes elsewhere in the source tree.
o We no longer pretend to support rlim_t as a long type.
o Revised code formatting to be more bsd-ish style.
1997-05-10 18:55:38 +00:00
|
|
|
login_cap.3 login_class.3 login_times.3 login_ok.3 \
|
1997-08-31 20:09:39 +00:00
|
|
|
_secure_path.3 uucplock.3
|
1997-01-04 16:50:08 +00:00
|
|
|
MAN5+= login.conf.5
|
1996-12-29 18:30:42 +00:00
|
|
|
MLINKS+= pty.3 openpty.3 pty.3 forkpty.3
|
1997-01-04 16:50:08 +00:00
|
|
|
MLINKS+=login_cap.3 login_getclassbyname.3 login_cap.3 login_close.3 \
|
|
|
|
login_cap.3 login_getclass.3 login_cap.3 login_getuserclass.3 \
|
|
|
|
login_cap.3 login_getcapstr.3 login_cap.3 login_getcaplist.3 \
|
|
|
|
login_cap.3 login_getstyle.3 login_cap.3 login_getcaptime.3 \
|
|
|
|
login_cap.3 login_getcapnum.3 login_cap.3 login_getcapsize.3 \
|
|
|
|
login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3
|
|
|
|
MLINKS+=login_class.3 setusercontext.3 login_class.3 setclasscontext.3 \
|
|
|
|
login_class.3 setclassenvironment.3 login_class.3 setclassresources.3
|
|
|
|
MLINKS+=login_times.3 parse_lt.3 login_times.3 in_ltm.3 \
|
|
|
|
login_times.3 in_lt.3 login_times.3 in_ltms.3 \
|
|
|
|
login_times.3 in_lts.3
|
|
|
|
MLINKS+=login_ok.3 auth_ttyok.3 login_ok.3 auth_hostok.3 \
|
|
|
|
login_ok.3 auth_timeok.3
|
1997-04-01 17:44:58 +00:00
|
|
|
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_unlock.3 uucplock.3 uu_lockerr.3
|
1994-05-27 05:00:24 +00:00
|
|
|
|
1996-01-01 08:27:41 +00:00
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libutil.h \
|
|
|
|
${DESTDIR}/usr/include
|
1997-05-10 12:49:30 +00:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/login_cap.h \
|
|
|
|
${DESTDIR}/usr/include
|
1996-01-01 08:27:41 +00:00
|
|
|
|
1994-05-27 05:00:24 +00:00
|
|
|
.include <bsd.lib.mk>
|