/[base]/head/lib/libutil/login_cap.c
ViewVC logotype

Log of /head/lib/libutil/login_cap.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 317265 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 21 19:27:33 2017 UTC (3 years, 10 months ago) by pfg
File length: 19680 byte(s)
Diff to previous 300152
lib: initial use of reallocarray(3).

Make some use of reallocarray, attempting to limit it to cases where the
parameters are unsigned and there is some theoretical chance of overflow.

MFC afer:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D9980


Revision 300152 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 18 15:25:45 2016 UTC (4 years, 9 months ago) by pfg
File length: 19676 byte(s)
Diff to previous 255007
libutil: minor spelling fixes.


Revision 255007 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 28 21:10:37 2013 UTC (7 years, 5 months ago) by jilles
File length: 19676 byte(s)
Diff to previous 184633
libutil: Use O_CLOEXEC for internal file descriptors from open().


Revision 184633 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 4 13:49:53 2008 UTC (12 years, 3 months ago) by des
File length: 19664 byte(s)
Diff to previous 170713
Avoid assigning a const char * to a char *.

MFC after:	3 weeks


Revision 170713 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 14 06:42:49 2007 UTC (13 years, 8 months ago) by yar
File length: 19653 byte(s)
Diff to previous 145426
Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.


Revision 145426 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 22 23:11:57 2005 UTC (15 years, 10 months ago) by trhodes
File length: 19153 byte(s)
Diff to previous 129112
Properly spell default in a comment.


Revision 129112 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 11 11:05:26 2004 UTC (16 years, 9 months ago) by dds
File length: 19153 byte(s)
Diff to previous 121530
Bring the description for login_getclassbyname in sync with the function's
arguments.  The function has as a second argument a struct passwd * pointer,
not a directory name.

MFC after:	2 weeks


Revision 121530 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 26 03:51:47 2003 UTC (17 years, 4 months ago) by peter
File length: 19135 byte(s)
Diff to previous 121193
(mostly) Clean up some const warnings here.  The code takes some liberties
because it is the originator of various const strings and knows that they
came from malloc.


Revision 121193 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 18 10:04:16 2003 UTC (17 years, 4 months ago) by markm
File length: 19086 byte(s)
Diff to previous 116344
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.


Revision 116344 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 14 18:42:37 2003 UTC (17 years, 8 months ago) by markm
File length: 19029 byte(s)
Diff to previous 102411
Tidy up. Sort headers.


Revision 102411 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 25 13:10:45 2002 UTC (18 years, 6 months ago) by charnier
File length: 19030 byte(s)
Diff to previous 94202
Replace various spelling with FALLTHROUGH which is lint()able


Revision 94202 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 8 11:04:56 2002 UTC (18 years, 10 months ago) by ru
File length: 19027 byte(s)
Diff to previous 91750
Const poisoning.


Revision 91750 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 6 15:24:51 2002 UTC (18 years, 11 months ago) by des
File length: 18974 byte(s)
Diff to previous 84225
Remove a bogus cast.


Revision 84225 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 30 22:35:07 2001 UTC (19 years, 4 months ago) by dillon
File length: 18981 byte(s)
Diff to previous 83923
Add __FBSDID()s to libutil


Revision 83923 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 25 11:07:26 2001 UTC (19 years, 5 months ago) by ache
File length: 18950 byte(s)
Diff to previous 83550
1) Back out ~/.login_conf disable
2) Pick only "me" class from ~/.login_conf as documented


Revision 83550 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 16 16:48:40 2001 UTC (19 years, 5 months ago) by rwatson
File length: 18952 byte(s)
Diff to previous 83516
Disable per-user .login_conf support due to incorrect merging of local
and globaly settings.  An alternative implementation will be developed.

Reported by:	Przemyslaw Frasunek <venglin@freebsd.lublin.pl>


Revision 83516 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 15 16:12:56 2001 UTC (19 years, 5 months ago) by rwatson
File length: 18901 byte(s)
Diff to previous 72089
o Add a comment noting that the early setting of privileges for the purpose
  of NFS home directory and root directory processing fails to include
  additional groups.  This doesn't impact the final credential, but does
  mean that users may be denied login even when additional groups might
  allow it.


Revision 72089 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 6 10:39:38 2001 UTC (20 years ago) by asmodai
File length: 18859 byte(s)
Diff to previous 64990
Fix typo: seperate -> separate.

Seperate does not exist in the english language.

Submitted to look at by:	kris


Revision 64990 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 23 03:45:57 2000 UTC (20 years, 6 months ago) by green
File length: 18859 byte(s)
Diff to previous 64918
Stick login_setcryptfmt() in its own file to make pulling in of
-lcrypt only happen if truly necessary.


Revision 64918 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 22 02:15:54 2000 UTC (20 years, 6 months ago) by green
File length: 19136 byte(s)
Diff to previous 60746
Add working and easy crypt(3)-switching.  Yes, we need a whole new API
for crypt(3) by now.  In any case:

Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).

The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)

Reviewed by:	peter


Revision 60746 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 21 02:50:36 2000 UTC (20 years, 9 months ago) by hoek
File length: 18859 byte(s)
Diff to previous 50476
Fix a memory leak with lc->lc_cap in login_close().

PR:		bin/17084


Revision 50476 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 28 00:22:10 1999 UTC (21 years, 6 months ago) by peter
File length: 18840 byte(s)
Diff to previous 46004
$Id$ -> $FreeBSD$


Revision 46004 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 24 17:17:42 1999 UTC (21 years, 10 months ago) by ache
File length: 18885 byte(s)
Diff to previous 46003
oops, add pwd!=NULL check to previous fix


Revision 46003 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 24 17:01:58 1999 UTC (21 years, 10 months ago) by ache
File length: 18800 byte(s)
Diff to previous 26621
Switch to user UID/GID before checking/reading its ~/.login_conf
- some NFSes have root read access disabled


Revision 26621 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 13 22:26:41 1997 UTC (23 years, 8 months ago) by davidn
File length: 18449 byte(s)
Diff to previous 25702
Add "break" inadvertently removed in previous update.
PR: 3820
Submitted by: Joseph Stein <joes@spiritone.com>


Revision 25702 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 11 08:07:29 1997 UTC (23 years, 9 months ago) by davidn
File length: 18425 byte(s)
Diff to previous 25670
MF2.2: bugfix in arrayize().


Revision 25670 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 10 18:55:38 1997 UTC (23 years, 9 months ago) by davidn
File length: 18422 byte(s)
Diff to previous 23144
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.


Revision 23144 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 27 00:24:05 1997 UTC (24 years ago) by ache
File length: 14303 byte(s)
Diff to previous 22993
"infinity" check was missed from login_getcapsize(), add it

One manifestation of this bug: all networking users have coredumpsize=0


Revision 22993 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 22 15:12:41 1997 UTC (24 years ago) by peter
File length: 14093 byte(s)
Diff to previous 22111
Revert $FreeBSD$ to $Id$


Revision 22111 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 30 03:37:13 1997 UTC (24 years ago) by davidn
File length: 14098 byte(s)
Diff to previous 22088
Fix free()ing block twice, remove unused function.


Revision 22088 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 06:50:00 1997 UTC (24 years ago) by davidn
File length: 14292 byte(s)
Diff to previous 22087
Fix typo .->, for default separators in login_getcaplist().


Revision 22087 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 06:31:42 1997 UTC (24 years ago) by davidn
File length: 14271 byte(s)
Diff to previous 22085
Completed fixes with login_getcapsize().


Revision 22085 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 06:06:32 1997 UTC (24 years ago) by davidn
File length: 14255 byte(s)
Diff to previous 21673
1)	Fixed bug in free()ing internal string/array where
	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


Revision 21673 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 14 07:20:47 1997 UTC (24 years, 1 month ago) by jkh
File length: 14077 byte(s)
Diff to previous 21402
Make the long-awaited change from $Id$ to $FreeBSD$

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.


Revision 21402 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 7 16:28:12 1997 UTC (24 years, 1 month ago) by davidn
File length: 14123 byte(s)
Diff to previous 21399
Various bugfixes.


Revision 21399 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 7 13:32:04 1997 UTC (24 years, 1 month ago) by davidn
File length: 14110 byte(s)
Diff to previous 21398
Commit the right version this time. :-)


Revision 21398 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 7 13:29:21 1997 UTC (24 years, 1 month ago) by davidn
File length: 14111 byte(s)
Diff to previous 21288
Fix for login_getclass(NULL) case.


Revision 21288 - (view) (download) (annotate) - [select for diffs]
Added Sat Jan 4 16:50:08 1997 UTC (24 years, 1 month ago) by davidn
File length: 14093 byte(s)
Library functions relating to the login class capabilities database,
including manpages.
See also login_cap.h.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.27