summaryrefslogtreecommitdiff
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Re-document unimplemented capabilities that were removed in the lastDavid Schultz2003-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) Notes: svn path=/head/; revision=111891
* - Document the fact that we now use pam_passwdqc(8) to checkDavid Schultz2003-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 Notes: svn path=/head/; revision=111791
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-1/+3
| | | | Notes: svn path=/head/; revision=111285
* Now return NULLified struct in case of empty config fileAndrey A. Chernov2003-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. Notes: svn path=/head/; revision=109916
* Handle read errorsAndrey A. Chernov2003-01-271-3/+6
| | | | Notes: svn path=/head/; revision=109915
* Add (unsigned char) cast to ctype macrosAndrey A. Chernov2003-01-191-13/+31
| | | | | | | Handle NULL return from malloc and strdup Notes: svn path=/head/; revision=109515
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* english(4) police.Jens Schweikhardt2002-12-272-2/+2
| | | | Notes: svn path=/head/; revision=108317
* Document the `label' capability.Chris Costello2002-11-221-0/+2
| | | | | | | | | Approved by: re Sponsored by: DARPA, Network Associates Labs Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=107177
* Oops. Some ut_time stuff slipped through the cracks. These turned outPeter Wemm2002-11-172-2/+4
| | | | | | | to be non-fatal due to stack alignment roundups. Notes: svn path=/head/; revision=107030
* Add LOGIN_SETMAC to the list of flags that can't be set without classRobert Watson2002-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 Notes: svn path=/head/; revision=106831
* Use "deprecated" instead of "depreciated" where appropriate.Sheldon Hearn2002-10-301-1/+1
| | | | Notes: svn path=/head/; revision=106194
* Don't forget to '\n'-terminate new entries. This unbreaks chpass -a.Dag-Erling Smørgrav2002-10-291-1/+2
| | | | | | | Submitted by: joerg Notes: svn path=/head/; revision=106140
* If LOGIN_SETMAC is set and MAC is enabled in the kernel, then seeRobert Watson2002-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 Notes: svn path=/head/; revision=105757
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-252-2/+2
| | | | Notes: svn path=/head/; revision=102411
* Add LOGIN_SETMAC, which will indicate to the user context management codeRobert Watson2002-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 Notes: svn path=/head/; revision=101959
* Whitespace cleanup--it's not style(9), but it is consistent. PrepRobert Watson2002-08-111-3/+3
| | | | | | | | | | for MAC-related commits to the login infrastructure. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101658
* mdoc(7) police: spelling.Ruslan Ermilov2002-08-091-1/+1
| | | | Notes: svn path=/head/; revision=101582
* Add additional field 'overwrite' to login_vars. It mainly needed to handleAndrey A. Chernov2002-06-281-10/+11
| | | | | | | | "term" according to manpage, i.e. not overwrite it, if already present in environment. Notes: svn path=/head/; revision=98977
* Backout previous delta (addition of -I${.CURDIR}/../../sys).Maxim Sobolev2002-06-261-2/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=98875
* Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world brokenMaxim Sobolev2002-06-261-1/+2
| | | | | | | by RLIMIT_VMEM addition. Notes: svn path=/head/; revision=98874
* Add documentation for vmemoryuseMatthew Dillon2002-06-261-0/+1
| | | | Notes: svn path=/head/; revision=98852
* Make libutil aware of vmemoryuse in its login.conf cap processing (akaMatthew Dillon2002-06-261-0/+1
| | | | | | | sshd, /usr/bin/login, etc) Notes: svn path=/head/; revision=98851
* Be more clear in error messages.Nick Hibma2002-06-231-4/+9
| | | | | | | | | | Distinguish between a held lock and a failed lock op. If rpc.lockd is not running on a diskless client this makes clearer what the problem is. Notes: svn path=/head/; revision=98693
* Return HOSTNAME_INVALIDADDR when reverse lookup is fail.Hajimu UMEMOTO2002-06-071-1/+1
| | | | | | | Submitted by: Sergey Zorin <sergey@cc.tpu.edu.ru> Notes: svn path=/head/; revision=98021
* Add used include of <string.h>.Garrett Wollman2002-05-301-0/+1
| | | | Notes: svn path=/head/; revision=97621
* If no old_pw was passed to pw_copy, compare just the name.Dag-Erling Smørgrav2002-05-081-1/+2
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96220
* Add passwd manipulation code based on parts of vipw and chpass.Dag-Erling Smørgrav2002-05-083-86/+438
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96199
* login(3) doesn't care about the controlling terminal any more.Dag-Erling Smørgrav2002-04-201-1/+1
| | | | Notes: svn path=/head/; revision=95126
* Fix for the sshd(8) utmp problem. Previously, login(3) would ignore the ttyDag-Erling Smørgrav2002-04-201-3/+9
| | | | | | | | | | | | | | | | | | named by its argument and use ttyslot(3) instead to determine what slot to use. The problem is that sshd(8) calls pam_open_session(3) before forking the child (as it should), at which point it does not have a controlling terminal. Also, ttyslot(3) is very crude as it assumes fd 0, 1 or 2 refers to the controlling terminal, which is usually (but not always) the case. Instead of using ttyslot(3) to determine the slot number, look up the specified tty in /etc/ttys ourselves (this is what ttyslot(3) does anyway). (perforce change 9969) Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95125
* Make mppath and masterpasswd pointers instead of arrays, and initializeDag-Erling Smørgrav2002-04-171-2/+4
| | | | | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=94897
* Add a missing cross-ref.Ceri Davies2002-04-161-1/+2
| | | | | | | | Approved by: murray MFC after: 1 week Notes: svn path=/head/; revision=94829
* Remove bogus reference to _use_yp.Dag-Erling Smørgrav2002-04-151-9/+1
| | | | Notes: svn path=/head/; revision=94776
* Const poisoning.Ruslan Ermilov2002-04-086-28/+26
| | | | Notes: svn path=/head/; revision=94202
* Remove multi-line __P() usage.David E. O'Brien2002-03-221-8/+7
| | | | Notes: svn path=/head/; revision=92941
* Remove __P() usage.David E. O'Brien2002-03-213-66/+66
| | | | Notes: svn path=/head/; revision=92917
* Remove 'register' keyword.David E. O'Brien2002-03-212-3/+3
| | | | Notes: svn path=/head/; revision=92913
* Remove a bogus cast.Dag-Erling Smørgrav2002-03-061-1/+1
| | | | Notes: svn path=/head/; revision=91750
* Correct a typo.Dima Dorfman2002-03-031-1/+1
| | | | | | | | PR: 35273 Submitted by: Nicola Vitale <nivit@libero.it> Notes: svn path=/head/; revision=91574
* #include <time.h> for the definition of time functions instead ofBruce Evans2002-02-251-1/+2
| | | | | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Notes: svn path=/head/; revision=91241
* #include <stddef.h> for the definition of NULL instead of depending onBruce Evans2002-02-251-1/+3
| | | | | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. Notes: svn path=/head/; revision=91211
* ANSIfy and constify.Dag-Erling Smørgrav2002-02-051-17/+15
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90233
* o Reflect repo-copy of extattr.[c3] from libutil to libc, movingRobert Watson2001-11-163-181/+1
| | | | | | | | | | | extattr namespace routines to the libc/posix1e directory. While the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't strictly ever approved, so I think that's OK. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=86452
* o Document 'nocheckmail' login capability.Robert Watson2001-11-161-0/+1
| | | | Notes: svn path=/head/; revision=86451
* Although the 'bool' type is referenced in the list of capabilities, itRobert Watson2001-11-161-0/+3
| | | | | | | | | | is not defined in the capability type list. Provide a definition for 'bool', if a slightly less than elegant one. Note that this definition does not include the complete scope of available behavior defined in cgetcap(3), and could probably be improved. Notes: svn path=/head/; revision=86444
* Fix the phrase about "both files", which must be leftYaroslav Tykhiy2001-10-111-1/+3
| | | | | | | | | | from login(3). This page, logwtmp(3), speaks of only one file -- wtmp(5). MFC after: 1 week Notes: svn path=/head/; revision=84793
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-0119-44/+44
| | | | Notes: svn path=/head/; revision=84306
* Add __FBSDID()s to libutilMatthew Dillon2001-09-3020-52/+58
| | | | Notes: svn path=/head/; revision=84225
* 1) Back out ~/.login_conf disableAndrey A. Chernov2001-09-252-8/+5
| | | | | | | 2) Pick only "me" class from ~/.login_conf as documented Notes: svn path=/head/; revision=83923