Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 11:55:39 -0700 (PDT)
From:      David Nugent <davidn@FreeBSD.ORG>
To:        CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   cvs commit:  src/lib/libutil _secure_path.3 _secure_path.c Makefile libutil.h login.c login_auth.c login_cap.c login_cap.h login_class.c login_ok.c login_times.c
Message-ID:  <199705101855.LAA28032@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidn      97/05/10 11:55:39

  Modified:    lib/libutil  Makefile libutil.h login.c login_auth.c
                        login_cap.c  login_cap.h login_class.c login_ok.c
                        login_times.c
  Added:       lib/libutil  _secure_path.3 _secure_path.c
  Log:
  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  Changes    Path
  1.11      +4 -2      src/lib/libutil/Makefile
  1.7       +2 -1      src/lib/libutil/libutil.h
  1.3       +0 -0      src/lib/libutil/login.c
  1.7       +500 -215  src/lib/libutil/login_auth.c
  1.12      +518 -312  src/lib/libutil/login_cap.c
  1.2       +65 -50    src/lib/libutil/login_cap.h
  1.6       +259 -248  src/lib/libutil/login_class.c
  1.4       +124 -115  src/lib/libutil/login_ok.c
  1.5       +83 -88    src/lib/libutil/login_times.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705101855.LAA28032>