summaryrefslogtreecommitdiffstats
path: root/libutil/login_cap.c
Commit message (Collapse)AuthorAgeFilesLines
* Recommit everything, add chpass, improve history (except for a few files ↵Cameron Katri2021-05-021-0/+4
| | | | that git-filter-repo dislikes for some reason [_secure_path.c and login_cap.h])
* lib: initial use of reallocarray(3).Pedro F. Giffuni2017-04-211-1/+1
| | | | | | | | Make some use of reallocarray, attempting to limit it to cases where the parameters are unsigned and there is some theoretical chance of overflow. MFC afer: 2 weeks Differential Revision: https://reviews.freebsd.org/D9980
* libutil: minor spelling fixes.Pedro F. Giffuni2016-05-181-1/+1
|
* libutil: Use O_CLOEXEC for internal file descriptors from open().Jilles Tjoelker2013-08-281-0/+819
|
* Create the altix project branch. The altix project will add supportMarcel Moolenaar2010-03-101-819/+0
| | | | | | | for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
* Avoid assigning a const char * to a char *.Dag-Erling Smørgrav2008-11-041-4/+5
| | | | MFC after: 3 weeks
* Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.Yaroslav Tykhiy2007-06-141-8/+18
|
* Properly spell default in a comment.Tom Rhodes2005-04-221-1/+1
|
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-111-3/+4
| | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks
* (mostly) Clean up some const warnings here. The code takes some libertiesPeter Wemm2003-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.Mark Murray2003-10-181-34/+34
|
* Tidy up. Sort headers.Mark Murray2003-06-141-9/+8
|
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
|
* Const poisoning.Ruslan Ermilov2002-04-081-10/+10
|
* Remove a bogus cast.Dag-Erling Smørgrav2002-03-061-1/+1
|
* Add __FBSDID()s to libutilMatthew Dillon2001-09-301-2/+3
|
* 1) Back out ~/.login_conf disableAndrey A. Chernov2001-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 localRobert Watson2001-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 purposeRobert Watson2001-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.Jeroen Ruigrok van der Werven2001-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 ofBrian Feldman2000-08-231-13/+0
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-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().Tim Vanderhoek2000-05-211-0/+1
| | | | PR: bin/17084
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* oops, add pwd!=NULL check to previous fixAndrey A. Chernov1999-04-241-11/+17
|
* Switch to user UID/GID before checking/reading its ~/.login_confAndrey A. Chernov1999-04-241-1/+14
| | | | - some NFSes have root read access disabled
* Add "break" inadvertently removed in previous update.David Nugent1997-06-131-1/+3
| | | | | PR: 3820 Submitted by: Joseph Stein <joes@spiritone.com>
* MF2.2: bugfix in arrayize().David Nugent1997-05-111-2/+2
|
* Summary of login.conf support changes:David Nugent1997-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 itAndrey A. Chernov1997-02-271-1/+7
| | | | One manifestation of this bug: all networking users have coredumpsize=0
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
|
* Fix free()ing block twice, remove unused function.David Nugent1997-01-301-15/+1
|
* Fix typo .->, for default separators in login_getcaplist().David Nugent1997-01-291-1/+2
|
* Completed fixes with login_getcapsize().David Nugent1997-01-291-1/+2
|
* 1) Fixed bug in free()ing internal string/array whereDavid Nugent1997-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$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.
* Various bugfixes.David Nugent1997-01-071-7/+11
|
* Commit the right version this time. :-)David Nugent1997-01-071-2/+2
|
* Fix for login_getclass(NULL) case.David Nugent1997-01-071-4/+6
|
* Library functions relating to the login class capabilities database,David Nugent1997-01-041-0/+564
including manpages. See also login_cap.h.