Maxim Sobolev
de78df64c7
Complete bzip2-1.0.2 import.
...
MFC in: 14 days
2002-02-01 16:33:40 +00:00
Dag-Erling Smørgrav
2d0a7148b6
Connect the pam_lastlog(8) and pam_login_access(8) modules to the build.
...
Sponsored by: DARPA, NAI Labs
2002-02-01 08:49:53 +00:00
Peter Pentchev
b484faa5e0
Return ENONAME if getaddrinfo() is called with AI_NUMERICHOST
...
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
2002-02-01 08:35:16 +00:00
David E. O'Brien
60e104f3f5
Fixed slipage in editor.
2002-02-01 07:26:00 +00:00
David E. O'Brien
26a2df7351
Cut-n-paste in `list' mode considered harmful.
2002-02-01 07:25:07 +00:00
David E. O'Brien
a99d101352
* Remove __P and convert to ANSI prototypes.
...
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
2002-02-01 01:39:09 +00:00
David E. O'Brien
b231cb3945
* Remove __P and convert to ANSI prototypes.
...
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
2002-02-01 01:32:19 +00:00
David E. O'Brien
22626efa0f
* Remove 'register'. (some functions had 7+ register functions...)
...
* Fix SCM ID's.
2002-02-01 01:08:48 +00:00
David E. O'Brien
ea8d448a92
Fix SCM ID's.
2002-02-01 00:57:29 +00:00
David E. O'Brien
ec4c2e3605
Fix minor style nit.
2002-01-31 17:26:37 +00:00
Chris D. Faulhaber
ea018aa260
Revert last commit. stdio.h include is for perror(), not strerror()
2002-01-31 13:32:14 +00:00
Chris D. Faulhaber
066f7169c1
strerror(3) is in string.h, not stdio.h
...
MFC after: 1 week
2002-01-31 13:20:48 +00:00
Bruce Evans
56bcbf00e2
Fixed world breakage due to missing include of <sys/cdefs.h> in previous
...
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'
2002-01-31 12:58:36 +00:00
David E. O'Brien
135b57f906
Fix FreeBSD IDs.
2002-01-30 21:36:57 +00:00
Dag-Erling Smørgrav
c60ed00a43
Still with asbestos longjohns on, completely PAMify login(1) and remove
...
code made redundant by various PAM modules (primarily pam_unix(8)).
Sponsored by: DARPA, NAI Labs
2002-01-30 19:10:21 +00:00
Dag-Erling Smørgrav
e9cc7b1d92
With asbestos longjohns on, integrate most of the checks normally done by
...
login(1) (password & account expiry, hosts.access etc.) into pam_unix(8).
Sponsored by: DARPA, NAI Labs
2002-01-30 19:09:11 +00:00
Dag-Erling Smørgrav
a2d20838b0
Move the code from pam_sm_authenticate() to pam_sm_acct_mgmt(). Simplify
...
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
2002-01-30 19:03:16 +00:00
Chris D. Faulhaber
60fba73589
Correct function's description.
...
Obtained from: TrustedBSD Project
2002-01-29 12:18:45 +00:00
David E. O'Brien
2040953a71
GC code that moved to crtbrand.c.
2002-01-28 19:02:34 +00:00
Andrey A. Chernov
831e8f614c
Do not try to convert to char already converted C monetary locale members.
...
Do this conversion on locale load stage instead.
2002-01-28 08:26:38 +00:00
Chris D. Faulhaber
d5af31a255
o return EINVAL if acl_to_text() have been sent a NULL acl. o update copyright dates.
...
Reviewed by: rwatson
2002-01-26 19:32:50 +00:00
David Malone
ab09ef008f
Use ctime_r to build the timestamp for syslog, so that we don't
...
clobber a ctime buffer which is passed in.
PR: 34022
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
MFC after: 2 weeks
2002-01-25 21:49:34 +00:00
David E. O'Brien
0f14df92a1
Add libfetch.so.2 from a 17-Dec-2001 4.5-RC (releng4) build.
2002-01-24 18:59:29 +00:00
Mark Murray
c2065008b5
WARNS=4 fixes. Protect with NO_WERROR for the modules that have
...
warnings that are hard to fix or that I've been asked to leave alone.
2002-01-24 18:37:17 +00:00
Dag-Erling Smørgrav
f748a713da
PAM modules shouldn't call putenv(); pam_putenv() is sufficient. The
...
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
2002-01-24 17:26:27 +00:00
Dag-Erling Smørgrav
9201dc40bf
Change the order in which pam_sm_open_session() updates the logs. This
...
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)
2002-01-24 17:15:04 +00:00
Dag-Erling Smørgrav
ca355e5451
Correctly interpret PAM_RHOST being unset as an indicator of a local
...
login.
Sponsored by: DARPA, NAI Labs
2002-01-24 16:18:43 +00:00
Dag-Erling Smørgrav
d233082fbe
Correctly interpret PAM_RHOST being unset as an indicator of a local
...
login.
2002-01-24 16:16:01 +00:00
Dag-Erling Smørgrav
e4536f1138
Style nits.
...
Sponsored by: DARPA, NAI Labs
2002-01-24 16:14:56 +00:00
Alexey Zelkin
a2fb0481d7
get __time_load_locale() prototype from include file, rather than declare
...
own
2002-01-24 15:38:59 +00:00
Alexey Zelkin
bcbeac34ae
* style(9)'fy
...
* declare prototype for __time_load_locale() in timelocal.h
2002-01-24 15:07:44 +00:00
David E. O'Brien
e95d27b9ae
Fix problem where with PicoBSD the shell coredumps if it does not find an
...
entry for its terminal type in /etc/termcap.
Submitted by: bde
2002-01-24 13:54:19 +00:00
Dag-Erling Smørgrav
f433d6afed
Document the even_root option.
...
Sponsored by: DARPA, NAI Labs
2002-01-24 13:35:06 +00:00
Dag-Erling Smørgrav
76f95f4dc2
Don't let root through unless the "even_root" option was specified.
...
Sponsored by: DARPA, NAI Labs
2002-01-24 12:47:42 +00:00
David Malone
98d1592458
Change brk's prototype from char *brk(const char *) to int brk(const void *)
...
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
2002-01-24 12:11:31 +00:00
Dag-Erling Smørgrav
16e058b5d6
Add a PAM module that records sessions in utmp/wtmp/lastlog.
...
Sponsored by: DARPA, NAI Labs
2002-01-24 09:45:17 +00:00
Dag-Erling Smørgrav
c2d5249eaf
Fix some pastos. Rather shoddy of me...
...
Sponsored by: DARPA, NAI Labs
2002-01-24 09:44:22 +00:00
David E. O'Brien
fb609a2178
Add libfetch.so.2 from a 10-Dec-2001 releng4 build.
2002-01-24 00:54:44 +00:00
Dag-Erling Smørgrav
53f3167d07
Add a PAM module that provides an account management component for checking
...
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
2002-01-23 17:42:16 +00:00
Dag-Erling Smørgrav
774a10071d
Add an AUTHORS section crediting ThinkSec, DARPA and NAI Labs.
...
Sponsored by: DARPA, NAI Labs
2002-01-23 17:16:00 +00:00
Ruslan Ermilov
0509dca0c3
Add pam_ssh support to the static PAM library, libpam.a:
...
- 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
2002-01-23 15:54:17 +00:00
Dag-Erling Smørgrav
b6b756b58b
Base the comparison on UIDs, not on user names.
...
Sponsored by: DARPA, NAI Labs
2002-01-23 15:16:01 +00:00
Ruslan Ermilov
fd4ca9e02d
Make libssh.so useable (undefined reference to IPv4or6).
...
Reviewed by: des, markm
Approved by: markm
2002-01-23 15:06:47 +00:00
Ruslan Ermilov
0e65089b79
The sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
...
all interfaces, and ifnet.if_index value for a single interface.
2002-01-23 12:48:08 +00:00
David Greenman
2e4bf827e5
Undo the work-around for the sendfile bug where nbytes needed the hdr/trl
...
size added to it in order for it to work properly when nbytes != 0.
Reviewed by: alfred
MFC after: 3 days
2002-01-22 23:35:09 +00:00
Andrey A. Chernov
ff7448f849
Restore C99 standard conformance information, isblank() _is_ in final
...
standard document
Pointed by: "Jacques A. Vidrine" <n@nectar.cc>
2002-01-22 20:14:35 +00:00
Mark Murray
5567b258eb
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
...
with uid_t usage and (user)->pw_uid.
PR: 3242
2002-01-22 17:32:53 +00:00
Ruslan Ermilov
0dc5e09ec6
Fix the description of the O_NONBLOCK flag to match reality.
...
Prodded by: Maxim Konovalov <maxim@macomnet.ru>
Obtained from: BSD/OS
2002-01-22 14:18:55 +00:00
Ruslan Ermilov
0c7f152b7b
Fix a typo I made in revision 1.5.
...
Submitted by: trevor
2002-01-22 12:38:43 +00:00
Ruslan Ermilov
fe42e96eff
Finish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile)
...
argument to kvm_open() and kvm_openfiles() as unused.
BSD didn't read swap since kvm.c CSRG revision 5.21 (u-area is pageable
under new VM. no need to read from swap.)
The old !NEWVM code was removed in CSRG revision 5.23 (~ten years ago).
2002-01-22 10:07:03 +00:00