Commit Graph

91 Commits

Author SHA1 Message Date
charnier
0434878496 Statisize usage(). 1997-10-27 07:53:22 +00:00
joerg
328af0ffe5 Remove the claim that UUCP locking were not atomic. It is since
revision 1.8 of uucplock.c.
1997-10-07 07:24:50 +00:00
obrien
a597ab8826 Add passwd(5) to "SEE ALSO".
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).
1997-10-07 05:40:36 +00:00
jkh
068b44c29a Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
wosch
b215fc2e1e Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
wosch
3c1738bcc0 Endless loop.
$ 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]
1997-09-29 13:13:51 +00:00
pst
b7ff29b578 The parameters to logwtmp should be const char's 1997-09-04 22:38:59 +00:00
brian
c5afaa052c Remove login_progok()
Suggested by: guido
1997-08-31 20:09:39 +00:00
brian
8b40cd7eec Add full support for determining if a user
is restricted from running a given program.
1997-08-27 20:06:20 +00:00
brian
60e440ef1f Add prog.deny as a list capability for
denying execution of certain programs.
1997-08-26 23:15:57 +00:00
bde
064a439a2c -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys. 1997-08-26 14:13:02 +00:00
joerg
bd623e7830 Cosmetic: distinguish in diag message between rebuilding and updating
the database.

PR:		3397
Submitted by:	taob@risc.org (Brian Tao)
1997-08-24 18:23:21 +00:00
steve
259c300ba2 Protect the copyright comments from reformatting by
indent and make this compile -Wall clean like the
Makefile suggests that it should. :)

Pointed out by:	Bruce Evans <bde@zeta.org.au>
1997-08-13 20:42:18 +00:00
ache
b1277d7174 Implement canonical locking protocol
Suggested by: joerg
1997-08-10 18:42:39 +00:00
steve
80cf4d73ac Observe precedence set by Phillippe Charnier in adding an
rcsid.
1997-08-07 22:28:25 +00:00
steve
73c33f0d68 Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid. 1997-08-07 15:33:50 +00:00
ache
ff3acf3e38 Improve weak locking by using flock() 1997-08-05 12:58:02 +00:00
davidn
02c15ba667 sleep() after sending 'nologin' file to ensure output is drained before
disconnect.
1997-07-19 04:47:05 +00:00
asami
58a7ac16ae Add appropriate ${DESTDIR} in front of absolute paths. 1997-07-18 07:27:56 +00:00
davidn
6feaf0c034 Fix infinite loop.
PR: 3878
Submitted by: roman@rpd.univ.kiev.ua
1997-06-16 23:38:01 +00:00
davidn
c948b471c3 Add "break" inadvertently removed in previous update.
PR: 3820
Submitted by: Joseph Stein <joes@spiritone.com>
1997-06-13 22:26:41 +00:00
julian
900c29f67a Submitted by: Whistle Communications (archie Cobbs)
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
1997-06-02 06:24:52 +00:00
tg
dd045e34b0 Typo police. 1997-05-22 07:02:01 +00:00
peter
9d4b98cfca Now I really understand the reason for the style.9 rule about not having
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?
1997-05-19 10:04:15 +00:00
davidn
5e2f9ddf9b MF2.2: update login_cap api docs.
PR:
Reviewed by:
Submitted by:
Obtained from:
1997-05-18 09:14:11 +00:00
davidn
5a1734d918 For non-root uids, consider root-owned files also 'secure' unless otherwise
disqualified.
1997-05-15 06:06:32 +00:00
asami
3018ae4cf0 Back out previous revision. Shlib version numbers are supposed to be
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.
1997-05-13 08:51:49 +00:00
brian
ff94c73691 Make uu_* const correct.
Suggested by:	joerg
1997-05-12 10:36:14 +00:00
davidn
6268f22105 Add #include <sys/types.h> in synopsis, now required for libutil.h. 1997-05-11 08:50:33 +00:00
davidn
69ac35d094 Bump shared lib version to 2.3.
Suggested by: bde
1997-05-11 08:31:43 +00:00
davidn
beddde206d MF2.2: bugfix in arrayize(). 1997-05-11 08:07:29 +00:00
davidn
8cd34a6aff Summary of login.conf support changes:
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.
1997-05-10 18:55:38 +00:00
davidn
8924140eb1 Move login_cap.h from src/include for easier maintenance with
related files.
1997-05-10 12:49:30 +00:00
danny
b6aedef35e Fix punctuation: "it's" -> "its" 1997-04-17 23:31:47 +00:00
bde
9e1aca546f Fixed missing const in synopsis. 1997-04-13 14:12:48 +00:00
mpp
733ff61cd8 Grammar police. 1997-04-02 05:52:22 +00:00
ache
2fe8fae1c4 Add Id
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()
1997-04-02 04:24:39 +00:00
ache
d53835f558 Code space optimization in uu_lockerr() 1997-04-02 03:53:49 +00:00
ache
2a8598fba9 Remove unused USE_PERROR define and syslog.h include
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.
1997-04-02 03:38:29 +00:00
mpp
d62478baea MLINK uu_lockerr(3). 1997-04-01 17:44:58 +00:00
mpp
1cbca1adb4 Mdoc police. 1997-04-01 17:44:31 +00:00
brian
290dc20dec Remove the syslog stuff, and allow various return values
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
1997-03-31 22:51:00 +00:00
brian
1e0f01eb52 Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
bde
4f6c29cee9 Fixed misquoted arg in synopsis. 1997-03-19 02:01:27 +00:00
ache
d8d4cda2fd "infinity" check was missed from login_getcapsize(), add it
One manifestation of this bug: all networking users have coredumpsize=0
1997-02-27 00:24:05 +00:00
peter
3447762204 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
peter
34fd560164 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
davidn
9710e2b004 Obsolete fgetline() -> fgetln(); and chop off newline if necessary. 1997-02-10 16:32:03 +00:00
asami
d6677d83fc 1MB is 1048576 bytes, not 1038476 bytes. (I can see that the original
committer wasn't using the MicroSlop Natural keyboard though! :)
1997-02-05 06:06:15 +00:00
davidn
0dd2a2390a Fix free()ing block twice, remove unused function. 1997-01-30 03:37:13 +00:00