summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Make uu_* const correct.brian1997-05-123-12/+12
| | | | Suggested by: joerg
* Add #include <sys/types.h> in synopsis, now required for libutil.h.davidn1997-05-114-4/+8
|
* Bump shared lib version to 2.3.davidn1997-05-111-1/+1
| | | | Suggested by: bde
* MF2.2: bugfix in arrayize().davidn1997-05-111-2/+2
|
* Summary of login.conf support changes:davidn1997-05-1010-1034/+1700
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Move login_cap.h from src/include for easier maintenance withdavidn1997-05-102-0/+143
| | | | related files.
* Fix punctuation: "it's" -> "its"danny1997-04-171-2/+2
|
* Fixed missing const in synopsis.bde1997-04-131-2/+2
|
* Grammar police.mpp1997-04-021-2/+2
|
* Add Idache1997-04-021-1/+4
| | | | | Reduce space for error bufer from 512 to 128: there is no such long strings can be returned from strerror()
* Code space optimization in uu_lockerr()ache1997-04-021-10/+7
|
* Remove unused USE_PERROR define and syslog.h includeache1997-04-022-25/+17
| | | | | | | | | | Use snprintf instead of sprintf to avoid buffer overflows Use snprintf in uu_lockerr instead of lots of hardcoded constants and not null-terminated strncpy Return "" for OK and "device in use" for INUSE, it allows simple strcpy(buf, uu_lockerr(retcode)) without testing for special OK case (NULL was there) and obtaining meaningful result for INUSE ("" was there) without special testing for it too.
* MLINK uu_lockerr(3).mpp1997-04-011-1/+1
|
* Mdoc police.mpp1997-04-011-9/+10
|
* Remove the syslog stuff, and allow various return valuesbrian1997-03-313-48/+145
| | | | | | | | | in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should. Suggested by: ache@freebsd.org
* Move uucplock into libutil and create a manual page.brian1997-03-304-3/+276
|
* Fixed misquoted arg in synopsis.bde1997-03-191-2/+2
|
* "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-2219-19/+19
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Obsolete fgetline() -> fgetln(); and chop off newline if necessary.davidn1997-02-101-4/+5
|
* 1MB is 1048576 bytes, not 1038476 bytes. (I can see that the originalasami1997-02-051-1/+1
| | | | committer wasn't using the MicroSlop Natural keyboard though! :)
* 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
|
* Added -Wall to CFLAGS, cleaned up (all avoidable) warnings.davidn1997-01-292-2/+3
|
* 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
* #include <sys/stat.h> for umask() prototype.davidn1997-01-291-0/+1
|
* Sort cross references.wosch1997-01-205-11/+11
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1420-20/+20
| | | | | | | | 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.
* Bump libutil.so version (2.1 -> 2.2) since a whole heap of new functionspeter1997-01-131-1/+1
| | | | | | were added with the login class stuff. This is needed since libutil.so.2.1 is what is used in RELENG_2_2 and well into the release cycle. We only bump once per release cycle as needed.
* Minor mdoc style fixes.mpp1997-01-093-50/+82
|
* Man page police.mpp1997-01-081-6/+6
|
* Various bugfixes.davidn1997-01-072-34/+42
|
* Consistency check: refs to ~/.login.conf should be ~/.login_conf.davidn1997-01-072-7/+7
|
* Commit the right version this time. :-)davidn1997-01-071-2/+2
|
* Fix for login_getclass(NULL) case.davidn1997-01-071-4/+6
|
* Fix typos pointed out by bde (thanks!).davidn1997-01-051-3/+3
|
* Don't depend only <stdio.h> bogusly including <sys/types.h>.bde1997-01-051-1/+2
| | | | | | (<sys/types.h> is a prerequisite for <login_cap.h> mainly because the latter wants to typedef rlim_t. rlim_t is typedefed in <sys/types.h> in NetBSD.)
* Add missing manpage for login.conf.davidn1997-01-051-0/+361
|
* Library functions relating to the login class capabilities database,davidn1997-01-0411-2/+2644
| | | | | including manpages. See also login_cap.h.
* Grammatical changes.alex1997-01-011-4/+4
| | | | Reviewed by: joerg
* Spelling/mdoc police.mpp1996-12-306-38/+39
|
* Finally document the interfaces found in libutil. While being here,joerg1996-12-297-2/+425
| | | | | | | | | also add the missing declaration of forkpty() to libutil.h. Btw., the calling interface for login(3) is crude. Some better abstraction is needed, perhaps similar to logwtmp(3). 2.2 candidate, but i'll wait for the spelling police first. :)
* Merge Lite2 mods, and -Wall cleaning. undelete(2) cruftsteve1996-12-141-2/+7
| | | | | | not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
* Some minor man page cleanup.mpp1996-08-231-9/+10
|
* General -Wall warning cleanup, part I.jkh1996-07-122-2/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Implement incremental passwd database updates. This is done by ading a '-u'guido1996-07-011-2/+8
| | | | | | | | | | | | | | option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon.
* If hostname > UT_HOSTSIZE, use its numeric address instead to keepache1996-06-171-4/+18
| | | | valid entries into utmp and wtmp
* If the two recently added sysctl variables exist, use those rather thanpeter1996-02-241-10/+17
| | | | | | | the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes.
OpenPOWER on IntegriCloud