freebsd-dev/lib/libutil
Tim Kientzle f9efe8694a 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
2004-02-26 22:41:47 +00:00
..
_secure_path.3 The .Fn function 2003-03-24 16:02:05 +00:00
_secure_path.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
auth.3 english(4) police. 2002-12-27 12:15:40 +00:00
auth.c Tidy up. Sort headers. 2003-06-14 18:42:37 +00:00
auth.conf.5 Add a missing cross-ref. 2002-04-16 10:15:51 +00:00
clean_environment.3 Add a clean_environment call to libutil. 2004-02-26 22:41:47 +00:00
clean_environment.c Add a clean_environment call to libutil. 2004-02-26 22:41:47 +00:00
fparseln.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
fparseln.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
libutil.h ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
login_auth.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_auth.c Tidy up. Sort headers. 2003-06-14 18:42:37 +00:00
login_cap.3 The .Fn function 2003-03-24 16:02:05 +00:00
login_cap.c (mostly) Clean up some const warnings here. The code takes some liberties 2003-10-26 03:51:47 +00:00
login_cap.h ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
login_class.3 Add vmemoryuse to the list. 2003-04-26 15:15:05 +00:00
login_class.c Remove __NETBSD_SYSCALLS. 2003-10-29 10:55:56 +00:00
login_crypt.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_ok.3 The .Fn function 2003-03-24 16:02:05 +00:00
login_ok.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
login_times.3 The .Fn function 2003-03-24 16:02:05 +00:00
login_times.c Tidy up. Sort headers. 2003-06-14 18:42:37 +00:00
login_tty.3 The .Fn function 2003-03-24 16:02:05 +00:00
login_tty.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
login.3 login(3) doesn't care about the controlling terminal any more. 2002-04-20 12:24:20 +00:00
login.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
login.conf.5 Backout last commit. It is redundant in -CURRENT. 2003-05-05 06:25:03 +00:00
logout.3 The .Fn function 2003-03-24 16:02:05 +00:00
logout.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
logwtmp.3 Fix the phrase about "both files", which must be left 2001-10-11 11:02:50 +00:00
logwtmp.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
Makefile Add a clean_environment call to libutil. 2004-02-26 22:41:47 +00:00
property.3 The .Fn function 2003-03-24 16:02:05 +00:00
property.c Tidy up. Sort headers. 2003-06-14 18:42:37 +00:00
pty.3 The .Fn function 2003-03-24 16:02:05 +00:00
pty.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
pw_util.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
realhostname_sa.3 mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
realhostname.3 mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
realhostname.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
stub.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
trimdomain.3 The .Fn function 2003-03-24 16:02:05 +00:00
trimdomain.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00
uucplock.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
uucplock.c ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. 2003-10-18 10:04:16 +00:00