summaryrefslogtreecommitdiffstats
path: root/lib/libutil/Makefile
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-02-26 22:41:47 +0000
committerkientzle <kientzle@FreeBSD.org>2004-02-26 22:41:47 +0000
commit8b8fb9aae5628c7005a6ddca3f43524536e45a67 (patch)
tree5e278436635ecd11128c037e5897c960d101598c /lib/libutil/Makefile
parent58a98b5bd1671c30f49bae2eadb70fb996c4ac0b (diff)
downloadFreeBSD-src-8b8fb9aae5628c7005a6ddca3f43524536e45a67.zip
FreeBSD-src-8b8fb9aae5628c7005a6ddca3f43524536e45a67.tar.gz
Add a clean_environment call to libutil.
This function removes all environment variables except the ones listed on a "whitelist." The function accepts two whitelist arguments. If the first is NULL, a built-in default list will be used. This allows callers to get a variety of behaviors: * Default screening: provide NULL for both lists * Custom screening: provide a custom list for the first argument * Modified default screening: provide NULL for first arg, list of additional variables to preserve in the second arg Idea from: Jacques Vidrine MFC after: 2 weeks
Diffstat (limited to 'lib/libutil/Makefile')
-rw-r--r--lib/libutil/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile
index e13663c..de6aa63 100644
--- a/lib/libutil/Makefile
+++ b/lib/libutil/Makefile
@@ -6,9 +6,9 @@ SHLIB_MAJOR= 4
SHLIBDIR?= /lib
CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../libc/gen/
CFLAGS+=-DINET6
-SRCS= _secure_path.c auth.c fparseln.c login.c login_auth.c \
- login_cap.c login_class.c login_crypt.c login_ok.c login_times.c \
- login_tty.c logout.c logwtmp.c property.c pty.c \
+SRCS= _secure_path.c auth.c clean_environment.c fparseln.c login.c \
+ login_auth.c login_cap.c login_class.c login_crypt.c login_ok.c \
+ login_times.c login_tty.c logout.c logwtmp.c property.c pty.c \
pw_util.c realhostname.c stub.c \
trimdomain.c uucplock.c
INCS= libutil.h login_cap.h
@@ -16,7 +16,7 @@ INCS= libutil.h login_cap.h
MAN+= login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
login_cap.3 login_class.3 login_times.3 login_ok.3 \
_secure_path.3 uucplock.3 property.3 auth.3 realhostname.3 \
- realhostname_sa.3 trimdomain.3 fparseln.3
+ realhostname_sa.3 trimdomain.3 fparseln.3 clean_environment.3
MAN+= login.conf.5 auth.conf.5
MLINKS+= property.3 properties_read.3 property.3 properties_free.3
MLINKS+= property.3 property_find.3
OpenPOWER on IntegriCloud