summaryrefslogtreecommitdiff
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Spelling corrections.Joseph Koshy1998-06-063-10/+10
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* Add missing uu_lock_txfr() prototypeAndrey A. Chernov1998-06-051-1/+2
| | | | Notes: svn path=/head/; revision=36660
* If using NetBSD syscalls the rtprio syscall doesn't exist, so justJohn Birrell1998-06-031-1/+7
| | | | | | | don't try to use it to set special priorities. Notes: svn path=/head/; revision=36607
* Trim a domain part for wtmp as same as showed by "netstat -r".Atsushi Murai1998-06-012-3/+42
| | | | | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp> Notes: svn path=/head/; revision=36559
* Add uu_lock_txfr() to transfer ownership of a successfulBrian Somers1998-05-284-10/+62
| | | | | | | uu_lock() to another process. Notes: svn path=/head/; revision=36451
* Allow setting of idle or realtime processing priorities perSteve Price1998-05-251-5/+22
| | | | | | | | | | login class. PR: 6636 Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com> Notes: svn path=/head/; revision=36351
* Oops, revert part of a diff that wasn't supposed to have been committed.David Greenman1998-04-281-2/+2
| | | | Notes: svn path=/head/; revision=35491
* Cache the results of the ps_strings sysctl so that it doesn't have to beDavid Greenman1998-04-281-10/+12
| | | | | | | redone for every call of setproctitle(). Notes: svn path=/head/; revision=35490
* Fixed function types in synopsis.Bruce Evans1998-03-231-10/+10
| | | | | | | | | Commented out docmentation of nonexistent authenticate() and auth_timesok(). authenticate() seems to be obsolete and auth_timesok() never existed in FreeBSD. Notes: svn path=/head/; revision=34822
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.AqPhilippe Charnier1998-03-191-3/+3
| | | | Notes: svn path=/head/; revision=34669
* Change tty-related capability names to match the implementation ("ttys.",Bill Fenner1998-02-211-10/+10
| | | | | | | not "tty."). Notes: svn path=/head/; revision=33728
* MF22: add login_auth.3 to man page list.Jordan K. Hubbard1998-02-181-2/+2
| | | | Notes: svn path=/head/; revision=33539
* Correctly document h and m modifiers to the time format.Steve Price1998-02-141-1/+3
| | | | | | | | PR: 5739 Submitted by: Matthew Cashdollar <mattc@rfcnet.com> Notes: svn path=/head/; revision=33347
* Fixed bitrot in the prototype for logwtmp().Bruce Evans1998-01-161-2/+2
| | | | Notes: svn path=/head/; revision=32569
* Make a couple of the stat flags dependent on the sys/stat.h header fileJohn Birrell1998-01-091-1/+9
| | | | | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-) Notes: svn path=/head/; revision=32361
* Make the login_getclassbyname prototype match reality.Steve Price1997-11-051-2/+2
| | | | | | | PR: 4838 Notes: svn path=/head/; revision=30951
* Statisize usage().Philippe Charnier1997-10-271-1/+4
| | | | Notes: svn path=/head/; revision=30765
* Remove the claim that UUCP locking were not atomic. It is sinceJoerg Wunsch1997-10-071-13/+1
| | | | | | | revision 1.8 of uucplock.c. Notes: svn path=/head/; revision=30196
* Add passwd(5) to "SEE ALSO".David E. O'Brien1997-10-071-1/+2
| | | | | | | | | | ISSUES: An example and better explansion on how to specify a user's login class in /etc/master passwd is needed. (As I don't seem to be specifiying it right, I can't do it). Notes: svn path=/head/; revision=30192
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-3/+3
| | | | | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su> Notes: svn path=/head/; revision=30113
* Sort cross refereces in section SEE ALSO.Wolfram Schneider1997-09-291-2/+2
| | | | Notes: svn path=/head/; revision=29988
* Endless loop.Wolfram Schneider1997-09-291-5/+5
| | | | | | | | | | | | | | $ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang] Notes: svn path=/head/; revision=29980
* The parameters to logwtmp should be const char'sPaul Traina1997-09-042-4/+6
| | | | Notes: svn path=/head/; revision=29119
* Remove login_progok()Brian Somers1997-08-315-103/+5
| | | | | | | Suggested by: guido Notes: svn path=/head/; revision=28962
* Add full support for determining if a userBrian Somers1997-08-275-5/+101
| | | | | | | is restricted from running a given program. Notes: svn path=/head/; revision=28839
* Add prog.deny as a list capability forBrian Somers1997-08-261-1/+3
| | | | | | | denying execution of certain programs. Notes: svn path=/head/; revision=28813
* -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.Bruce Evans1997-08-261-1/+1
| | | | Notes: svn path=/head/; revision=28801
* Cosmetic: distinguish in diag message between rebuilding and updatingJoerg Wunsch1997-08-241-1/+2
| | | | | | | | | | the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao) Notes: svn path=/head/; revision=28662
* Protect the copyright comments from reformatting bySteve Price1997-08-135-3/+28
| | | | | | | | | | indent and make this compile -Wall clean like the Makefile suggests that it should. :) Pointed out by: Bruce Evans <bde@zeta.org.au> Notes: svn path=/head/; revision=28179
* Implement canonical locking protocolAndrey A. Chernov1997-08-103-62/+83
| | | | | | | Suggested by: joerg Notes: svn path=/head/; revision=28040
* Observe precedence set by Phillippe Charnier in adding anSteve Price1997-08-071-3/+5
| | | | | | | rcsid. Notes: svn path=/head/; revision=27967
* Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.Steve Price1997-08-071-2/+3
| | | | Notes: svn path=/head/; revision=27958
* Improve weak locking by using flock()Andrey A. Chernov1997-08-051-4/+8
| | | | Notes: svn path=/head/; revision=27920
* sleep() after sending 'nologin' file to ensure output is drained beforeDavid Nugent1997-07-191-1/+2
| | | | | | | disconnect. Notes: svn path=/head/; revision=27524
* Add appropriate ${DESTDIR} in front of absolute paths.Satoshi Asami1997-07-181-1/+1
| | | | Notes: svn path=/head/; revision=27498
* Fix infinite loop.David Nugent1997-06-161-2/+2
| | | | | | | | PR: 3878 Submitted by: roman@rpd.univ.kiev.ua Notes: svn path=/head/; revision=26694
* Add "break" inadvertently removed in previous update.David Nugent1997-06-131-1/+3
| | | | | | | | PR: 3820 Submitted by: Joseph Stein <joes@spiritone.com> Notes: svn path=/head/; revision=26621
* Submitted by: Whistle Communications (archie Cobbs)Julian Elischer1997-06-021-1/+9
| | | | | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems Notes: svn path=/head/; revision=26360
* Typo police.Thomas Gellekum1997-05-221-2/+2
| | | | Notes: svn path=/head/; revision=25996
* Now I really understand the reason for the style.9 rule about not havingPeter Wemm1997-05-191-14/+14
| | | | | | | | | | visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two? Notes: svn path=/head/; revision=25918
* MF2.2: update login_cap api docs.David Nugent1997-05-181-9/+23
| | | | | | | | | | PR: Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=25888
* For non-root uids, consider root-owned files also 'secure' unless otherwiseDavid Nugent1997-05-152-4/+4
| | | | | | | disqualified. Notes: svn path=/head/; revision=25829
* Back out previous revision. Shlib version numbers are supposed to beSatoshi Asami1997-05-131-1/+1
| | | | | | | | | | | bumped only 0.1 or 1.0 between releases. (See handbook.) Note that if you have built world in -current in the last 48 hours or so, you should manually remove /usr/lib/libutil.so.2.3 before rebuilding world to cleanse your system. Notes: svn path=/head/; revision=25768
* Make uu_* const correct.Brian Somers1997-05-123-12/+12
| | | | | | | Suggested by: joerg Notes: svn path=/head/; revision=25740
* Add #include <sys/types.h> in synopsis, now required for libutil.h.David Nugent1997-05-114-4/+8
| | | | Notes: svn path=/head/; revision=25704
* Bump shared lib version to 2.3.David Nugent1997-05-111-1/+1
| | | | | | | Suggested by: bde Notes: svn path=/head/; revision=25703
* MF2.2: bugfix in arrayize().David Nugent1997-05-111-2/+2
| | | | Notes: svn path=/head/; revision=25702
* Summary of login.conf support changes:David Nugent1997-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. Notes: svn path=/head/; revision=25670
* Move login_cap.h from src/include for easier maintenance withDavid Nugent1997-05-102-0/+143
| | | | | | | related files. Notes: svn path=/head/; revision=25658
* Fix punctuation: "it's" -> "its"Daniel O'Callaghan1997-04-171-2/+2
| | | | Notes: svn path=/head/; revision=24992