summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Humanize_number(3) is a part of libutil.pjd2004-05-251-0/+2
|
* You want to include libutil.h, not util.h.trhodes2004-05-251-4/+7
| | | | Some minor sentence tweaking.
* Add humanize_number(3) to libutil for formating numbers into a humanpjd2004-05-244-4/+312
| | | | | | readable form. Obtained from: NetBSD
* Don't depend on NULL's expansion being a pointer, cast it before it is passedstefanf2004-05-181-3/+4
| | | | | | to variadic functions. Approved by: das (mentor)
* Fix and clarify unparsable sentence.dds2004-05-111-3/+3
| | | | MFC after: 2 weeks
* Bring the description for login_getclassbyname in sync with the function'sdds2004-05-112-8/+28
| | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks
* Back out the "clean_environment()" function from libutil.kientzle2004-02-293-211/+4
| | | | | | | Further contemplation has convinced me that this was not going to really solve the problem of environment-poisoning without raising serious administrative headaches. There must be a better way...
* Add the clean_environment call to libutil.h also.kientzle2004-02-261-0/+2
| | | | MFC after: 2 weeks
* Add a clean_environment call to libutil.kientzle2004-02-263-4/+211
| | | | | | | | | | | | | | | | | 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
* Bump the major version on libtuil. libutil now relies on the mac_*rwatson2003-11-121-1/+1
| | | | | | | | symbols exported by newer versions of libc, and so we want applications depending on the newer library code to be required to link against the newer libc. Discussed with: scottl, kris, imp
* Remove __NETBSD_SYSCALLS.tjr2003-10-291-6/+0
|
* (mostly) Clean up some const warnings here. The code takes some libertiespeter2003-10-261-8/+9
| | | | | because it is the originator of various const strings and knows that they came from malloc.
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.markm2003-10-1817-137/+120
|
* Remove a GCC specifig CFLAG. We should be using WARNS=? for this.markm2003-10-181-1/+1
| | | | | WARNS=? is not added here at this point, because I've not tested it on enough platforms, and I don't want to break builds.
* mdoc(7): Properly mark C headers.ru2003-09-102-2/+2
|
* style.Makefile(5)obrien2003-08-181-1/+1
|
* Stage 3 of dynamic root support. Make all the libraries needed to rungordon2003-08-171-0/+1
| | | | | | binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
* Tidy up. Sort headers.markm2003-06-1413-56/+53
|
* Backout last commit. It is redundant in -CURRENT.murray2003-05-051-5/+1
| | | | Pointed out by: David Schultz
* Note that the idletime setting is not enforced.murray2003-05-041-1/+5
| | | | | PR: docs/40952 MFC After: 3 days
* Document the login-backoff and login-retries capabilities.murray2003-05-041-0/+5
| | | | | PR: docs/51397 MFC After: 3 days
* Add vmemoryuse to the list.trhodes2003-04-261-0/+1
| | | | | PR: 50796 Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru>
* Brucify.des2003-04-101-4/+8
|
* Correctly detect the case where a password entry was changed while we weredes2003-04-091-2/+7
| | | | | | preparing to edit it. PR: bin/50563
* Apply the correct fix for bin/50679: don't mess around with process groupsdes2003-04-091-13/+19
| | | | | | | or the tty, just block selected signals in the parent like system(3) does. Many thanks to bde for his assistance in finding the correct solution. PR: bin/50679
* Band-aid for the "^C kills the editor" problem. I haven't yet found thedes2003-04-081-10/+6
| | | | | | | | proper way to fix this. The way this works is to prepend "exec " to the editor command to eliminate the "shell in the middle" which prevents us from properly reawakening the editor after a SIGTSTP. PR: bin/50679
* The .Fn functioncharnier2003-03-2412-31/+53
|
* Make pw_edit() use /bin/sh to interpret the EDITOR environmentdas2003-03-171-2/+12
| | | | | | | variable. PR: 48748 Reviewed by: mike (mentor)
* Re-document unimplemented capabilities that were removed in the lastdas2003-03-051-0/+57
| | | | | | | | revision of this file, but note that they are not supported in the base system. Requested by: ache Reviewed by: ache, mike (mentor)
* - Document the fact that we now use pam_passwdqc(8) to checkdas2003-03-031-58/+16
| | | | | | | | | | | | password quality, not login.conf(5). - Move warnexpire and warnpasswd from the ``Accounting Limits'' section to ``Authentication'', and nix everything else in the former section. The accounting knobs are not available in the base system, and the subset of them available in ports should be documented in the ports' manpages. PR: 47960 Reviewed by: mike (mentor), doc
* mdoc(7) police: markup laundry.ru2003-02-231-1/+3
|
* Now return NULLified struct in case of empty config fileache2003-01-271-6/+9
| | | | | | | | (previous variant return NULL pointer for both empty file case and error case, so caller can't sense error properly). It not affect existen programs because property_find() now returns NULL for both NULL pointer and NULLified struct.
* Handle read errorsache2003-01-271-3/+6
|
* Add (unsigned char) cast to ctype macrosache2003-01-191-13/+31
| | | | Handle NULL return from malloc and strdup
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* english(4) police.schweikh2002-12-272-2/+2
|
* Document the `label' capability.chris2002-11-221-0/+2
| | | | | | Approved by: re Sponsored by: DARPA, Network Associates Labs Obtained from: TrustedBSD Project
* Oops. Some ut_time stuff slipped through the cracks. These turned outpeter2002-11-172-2/+4
| | | | to be non-fatal due to stack alignment roundups.
* Add LOGIN_SETMAC to the list of flags that can't be set without classrwatson2002-11-121-1/+1
| | | | | | | | information, since we rely on the pwd entry to know what MAC labels to set as part of the login process. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Use "deprecated" instead of "depreciated" where appropriate.sheldonh2002-10-301-1/+1
|
* Don't forget to '\n'-terminate new entries. This unbreaks chpass -a.des2002-10-291-1/+2
| | | | Submitted by: joerg
* If LOGIN_SETMAC is set and MAC is enabled in the kernel, then seerwatson2002-10-231-0/+27
| | | | | | | | | | | | if the user has a 'label' entry in their login class. If so, attempt to set that label on the process as part of the credential setup. If we're unable to parse the label, or unable to set the label, fail. In the future, we may also want to warn if a label is set but the kernel doesn't support MAC. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-252-2/+2
|
* Add LOGIN_SETMAC, which will indicate to the user context management coderwatson2002-08-161-1/+2
| | | | | | | | that it should also set the user's default MAC label, if available and permitted. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Whitespace cleanup--it's not style(9), but it is consistent. Preprwatson2002-08-111-3/+3
| | | | | | | for MAC-related commits to the login infrastructure. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* mdoc(7) police: spelling.ru2002-08-091-1/+1
|
* Add additional field 'overwrite' to login_vars. It mainly needed to handleache2002-06-281-10/+11
| | | | | "term" according to manpage, i.e. not overwrite it, if already present in environment.
* Backout previous delta (addition of -I${.CURDIR}/../../sys).sobomax2002-06-261-2/+1
| | | | Submitted by: bde
* Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world brokensobomax2002-06-261-1/+2
| | | | by RLIMIT_VMEM addition.
OpenPOWER on IntegriCloud