summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_cap.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* Const poisoning.ru2002-04-081-10/+10
|
* Remove a bogus cast.des2002-03-061-1/+1
|
* Add __FBSDID()s to libutildillon2001-09-301-2/+3
|
* 1) Back out ~/.login_conf disableache2001-09-251-6/+5
| | | | 2) Pick only "me" class from ~/.login_conf as documented
* Disable per-user .login_conf support due to incorrect merging of localrwatson2001-09-161-0/+3
| | | | | | and globaly settings. An alternative implementation will be developed. Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl>
* o Add a comment noting that the early setting of privileges for the purposerwatson2001-09-151-2/+6
| | | | | | | of NFS home directory and root directory processing fails to include additional groups. This doesn't impact the final credential, but does mean that users may be denied login even when additional groups might allow it.
* Fix typo: seperate -> separate.asmodai2001-02-061-2/+2
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* Stick login_setcryptfmt() in its own file to make pulling in ofgreen2000-08-231-13/+0
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-221-0/+13
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Fix a memory leak with lc->lc_cap in login_close().hoek2000-05-211-0/+1
| | | | PR: bin/17084
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* oops, add pwd!=NULL check to previous fixache1999-04-241-11/+17
|
* Switch to user UID/GID before checking/reading its ~/.login_confache1999-04-241-1/+14
| | | | - some NFSes have root read access disabled
* Add "break" inadvertently removed in previous update.davidn1997-06-131-1/+3
| | | | | PR: 3820 Submitted by: Joseph Stein <joes@spiritone.com>
* MF2.2: bugfix in arrayize().davidn1997-05-111-2/+2
|
* Summary of login.conf support changes:davidn1997-05-101-311/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* "infinity" check was missed from login_getcapsize(), add itache1997-02-271-1/+7
| | | | One manifestation of this bug: all networking users have coredumpsize=0
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Fix free()ing block twice, remove unused function.davidn1997-01-301-15/+1
|
* Fix typo .->, for default separators in login_getcaplist().davidn1997-01-291-1/+2
|
* Completed fixes with login_getcapsize().davidn1997-01-291-1/+2
|
* 1) Fixed bug in free()ing internal string/array wheredavidn1997-01-291-24/+32
| | | | | | | allocated size not reset to 0 causing NULL dereference on call after login_close(). 2) Modify login_capsize() behaviour to match manpage, allow concatenated sizes; ie. 10m500k
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Various bugfixes.davidn1997-01-071-7/+11
|
* Commit the right version this time. :-)davidn1997-01-071-2/+2
|
* Fix for login_getclass(NULL) case.davidn1997-01-071-4/+6
|
* Library functions relating to the login class capabilities database,davidn1997-01-041-0/+564
including manpages. See also login_cap.h.
OpenPOWER on IntegriCloud