summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove an unnecessary #include that trips up OpenPAM. The header in questiondes2002-02-021-2/+0
| | | | | | | | is an internal Linux-PAM header which shouldn't be used outside Linux-PAM itself, and has absolutely zero effect on pam_ftp. Sponsored by: DARPA, NAI Labs MFC after: 1 week
* Fixed world breakage in previous commit. The generated headers are inbde2002-02-021-1/+1
| | | | the current directory which is rarely ${.CURDIR}.
* Fixed tab lossage in vendor id and nearby style bugs in previous commit.bde2002-02-011-1/+4
|
* Fixed syntax error in previous commit. It was non-fatal because it wasbde2002-02-011-3/+5
| | | | | | | in conditional code that happens not to be compiled, and because gcc doesn't complain garbage after #endif by default. Fixed some style bugs in previous commit, 1.8 and 1.1.
* Post-repocopy cleanup.des2002-02-012-7/+1
| | | | Sponsored by: DARPA, NAI Labs
* Complete bzip2-1.0.2 import.sobomax2002-02-015-15/+58
| | | | MFC in: 14 days
* Connect the pam_lastlog(8) and pam_login_access(8) modules to the build.des2002-02-012-0/+4
| | | | Sponsored by: DARPA, NAI Labs
* Return ENONAME if getaddrinfo() is called with AI_NUMERICHOSTroam2002-02-011-1/+1
| | | | | | | | | and the hostname given is not numeric. PR: 34390 Submitted by: Serge van den Boom <svdb@stack.nl> Approved by: silence from -net MFC after: 1 month
* Fixed slipage in editor.obrien2002-02-011-0/+1
|
* Cut-n-paste in `list' mode considered harmful.obrien2002-02-012-5/+5
|
* * Remove __P and convert to ANSI prototypes.obrien2002-02-012-19/+17
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
* * Remove __P and convert to ANSI prototypes.obrien2002-02-0116-264/+245
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
* * Remove 'register'. (some functions had 7+ register functions...)obrien2002-02-0116-68/+77
| | | | * Fix SCM ID's.
* Fix SCM ID's.obrien2002-02-0162-207/+166
|
* Fix minor style nit.obrien2002-01-311-1/+3
|
* Revert last commit. stdio.h include is for perror(), not strerror()jedgar2002-01-311-1/+1
|
* strerror(3) is in string.h, not stdio.hjedgar2002-01-311-1/+1
| | | | MFC after: 1 week
* Fixed world breakage due to missing include of <sys/cdefs.h> in previousbde2002-01-314-5/+17
| | | | | | | | | | | | commit. Fixed related style bugs: basename.c: misplaced '#if 0' dirname.c: misplaced '#if 0' getgrent.c: missing '#if 0', and tab lossage in vendor id (the previous commit fixed the complete corruption of the vendor id but lost a tab) getpwent.c: missing '#if 0'
* Fix FreeBSD IDs.obrien2002-01-305-15/+12
|
* Still with asbestos longjohns on, completely PAMify login(1) and removedes2002-01-301-19/+20
| | | | | | code made redundant by various PAM modules (primarily pam_unix(8)). Sponsored by: DARPA, NAI Labs
* With asbestos longjohns on, integrate most of the checks normally done bydes2002-01-301-32/+102
| | | | | | login(1) (password & account expiry, hosts.access etc.) into pam_unix(8). Sponsored by: DARPA, NAI Labs
* Move the code from pam_sm_authenticate() to pam_sm_acct_mgmt(). Simplifydes2002-01-302-62/+58
| | | | | | | | it a little and try to make it more resilient to various possible failure conditions. Change the man page accordingly, and take advantage of this opportunity to simplify its language. Sponsored by: DARPA, NAI Labs
* Correct function's description.jedgar2002-01-291-1/+1
| | | | Obtained from: TrustedBSD Project
* GC code that moved to crtbrand.c.obrien2002-01-281-4/+0
|
* Do not try to convert to char already converted C monetary locale members.ache2002-01-282-28/+40
| | | | Do this conversion on locale load stage instead.
* o return EINVAL if acl_to_text() have been sent a NULL acl. ↵jedgar2002-01-261-1/+6
| | | | | | o update copyright dates. Reviewed by: rwatson
* Use ctime_r to build the timestamp for syslog, so that we don'tdwmalone2002-01-251-2/+2
| | | | | | | | clobber a ctime buffer which is passed in. PR: 34022 Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks
* Add libfetch.so.2 from a 17-Dec-2001 4.5-RC (releng4) build.obrien2002-01-242-0/+456
|
* WARNS=4 fixes. Protect with NO_WERROR for the modules that havemarkm2002-01-2421-127/+138
| | | | warnings that are hard to fix or that I've been asked to leave alone.
* PAM modules shouldn't call putenv(); pam_putenv() is sufficient. Thedes2002-01-241-1/+0
| | | | | | | caller is supposed to check the PAM envlist and export the variables it contains; if it doesn't, it's broken. Sponsored by: DARPA, NAI Labs
* Change the order in which pam_sm_open_session() updates the logs. Thisdes2002-01-242-25/+14
| | | | | | | | | | | doesn't really make any difference, except it matches wtmp(5) better. Don't do anything in pam_sm_close_session(); init(8) will take care of utmp and wtmp when the tty is released. Clearing them here would make it possible to create a ghost session by logging in, running 'login -f $USER' and exiting the subshell. Sponsored by: DARPA, NAI Labs (but the bugs are all mine)
* Correctly interpret PAM_RHOST being unset as an indicator of a localdes2002-01-241-3/+2
| | | | | | login. Sponsored by: DARPA, NAI Labs
* Correctly interpret PAM_RHOST being unset as an indicator of a localdes2002-01-241-1/+5
| | | | login.
* Style nits.des2002-01-241-2/+2
| | | | Sponsored by: DARPA, NAI Labs
* get __time_load_locale() prototype from include file, rather than declarephantom2002-01-241-3/+2
| | | | own
* * style(9)'fyphantom2002-01-242-33/+34
| | | | * declare prototype for __time_load_locale() in timelocal.h
* Fix problem where with PicoBSD the shell coredumps if it does not find anobrien2002-01-241-1/+1
| | | | | | entry for its terminal type in /etc/termcap. Submitted by: bde
* Document the even_root option.des2002-01-241-1/+7
| | | | Sponsored by: DARPA, NAI Labs
* Don't let root through unless the "even_root" option was specified.des2002-01-241-2/+16
| | | | Sponsored by: DARPA, NAI Labs
* Change brk's prototype from char *brk(const char *) to int brk(const void *)dwmalone2002-01-241-15/+7
| | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
* Add a PAM module that records sessions in utmp/wtmp/lastlog.des2002-01-243-0/+369
| | | | Sponsored by: DARPA, NAI Labs
* Fix some pastos. Rather shoddy of me...des2002-01-242-5/+5
| | | | Sponsored by: DARPA, NAI Labs
* Add libfetch.so.2 from a 10-Dec-2001 releng4 build.obrien2002-01-242-0/+392
|
* Add a PAM module that provides an account management component for checkingdes2002-01-233-0/+285
| | | | | | | | | | | | | either PAM_RHOST or PAM_TTY against /etc/login.access.o This uncovers a problem with PAM_RHOST, in that if we always set it, there is no way to distinguish between a user logging in locally and a user logging in using 'ssh localhost'. This will be fixed by first making sure that all PAM modules can handle PAM_RHOST being unset (which is currently not the case), and then modifying su(1) and login(1) to not set it for local logins. Sponsored by: DARPA, NAI Labs
* Add an AUTHORS section crediting ThinkSec, DARPA and NAI Labs.des2002-01-232-2/+16
| | | | Sponsored by: DARPA, NAI Labs
* Add pam_ssh support to the static PAM library, libpam.a:ru2002-01-232-4/+5
| | | | | | | | | | | - Spam /usr/lib some more by making libssh a standard library. - Tweak ${LIBPAM} and ${MINUSLPAM}. - Garbage collect unused libssh_pic.a. - Add fake -lz dependency to secure/ makefiles needed for dynamic linkage with -lssh. Reviewed by: des, markm Approved by: markm
* Base the comparison on UIDs, not on user names.des2002-01-232-14/+12
| | | | Sponsored by: DARPA, NAI Labs
* Make libssh.so useable (undefined reference to IPv4or6).ru2002-01-231-2/+0
| | | | | Reviewed by: des, markm Approved by: markm
* The sixth argument to the NET_RT_IFLIST sysctl is actually 0 forru2002-01-231-1/+1
| | | | all interfaces, and ifnet.if_index value for a single interface.
* Undo the work-around for the sendfile bug where nbytes needed the hdr/trldg2002-01-221-11/+0
| | | | | | | size added to it in order for it to work properly when nbytes != 0. Reviewed by: alfred MFC after: 3 days
OpenPOWER on IntegriCloud