summaryrefslogtreecommitdiff
path: root/lib/libutil/login_auth.c
Commit message (Collapse)AuthorAgeFilesLines
* libutil: minor spelling fixes.Pedro F. Giffuni2016-05-181-1/+1
| | | | Notes: svn path=/head/; revision=300152
* libutil: Use O_CLOEXEC for internal file descriptors from open().Jilles Tjoelker2013-08-281-1/+1
| | | | Notes: svn path=/head/; revision=255007
* Tidy up. Sort headers.Mark Murray2003-06-141-9/+9
| | | | Notes: svn path=/head/; revision=116344
* Const poisoning.Ruslan Ermilov2002-04-081-1/+1
| | | | Notes: svn path=/head/; revision=94202
* Add __FBSDID()s to libutilMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84225
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Axe LOGIN_CAP_AUTH.Sheldon Hearn1999-08-131-565/+1
| | | | | | | | | PR: 10115 Reported by: Gene Skonicki <gene@cif.rochester.edu> Requested by: jdp Notes: svn path=/head/; revision=49696
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-09-161-2/+2
| | | | | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but... Notes: svn path=/head/; revision=39327
* sleep() after sending 'nologin' file to ensure output is drained beforeDavid Nugent1997-07-191-1/+2
| | | | | | | disconnect. Notes: svn path=/head/; revision=27524
* Summary of login.conf support changes:David Nugent1997-05-101-215/+500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=25670
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Obsolete fgetline() -> fgetln(); and chop off newline if necessary.David Nugent1997-02-101-4/+5
| | | | Notes: svn path=/head/; revision=22541
* Added -Wall to CFLAGS, cleaned up (all avoidable) warnings.David Nugent1997-01-291-1/+2
| | | | Notes: svn path=/head/; revision=22086
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix typos pointed out by bde (thanks!).David Nugent1997-01-051-3/+3
| | | | Notes: svn path=/head/; revision=21332
* Library functions relating to the login class capabilities database,David Nugent1997-01-041-0/+383
including manpages. See also login_cap.h. Notes: svn path=/head/; revision=21288