| History log of /src/usr.bin/su/Makefile |
| Revision | | Date | Author | Comments |
| 1.51 |
| 25-Feb-2018 |
mrg | add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts to bsd.prog.mk. use them instead of hard coding various lists of libraries for krb5.
this fixes static builds.
|
| 1.50 |
| 24-Apr-2011 |
elric | We no longer need -I/usr/include/krb5.
|
| 1.49 |
| 06-Apr-2008 |
lukem | Be consistent about making USE_PAM!=no be exclusive to USE_SKEY!=no.
|
| 1.48 |
| 27-Oct-2007 |
christos | - move grutil code to newgrp. - enable user:group and :group code.
|
| 1.47 |
| 17-Oct-2007 |
christos | From Anon Ymous: - general cleanup [e-funcs, lint fixes, exit values, more error checking] - add the ability to change the primary group group as login:group, or :group *disabled*, until it is discussed. - remove krb4 code since there is no more krb4 code in the tree. - also make the old su behave like the pam su: su to the same user, does not ask for a password. - split out shared code into a separate file.
|
| 1.46 |
| 28-May-2007 |
tls | branches: 1.46.4; Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
|
| 1.45 |
| 13-Jul-2006 |
christos | remove PAM_DEBUG
|
| 1.44 |
| 20-Mar-2006 |
christos | Goodbye KerberosIV
|
| 1.43 |
| 15-Dec-2005 |
christos | Use LOGIN_CAP even in the pam case.
|
| 1.42 |
| 04-Mar-2005 |
he | branches: 1.42.2; Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling with MKPIC=no, possibly because the target does not support shared libraries, these include libraries required to resolve all symbols which end up referenced from PAM-using applications. The libraries presently required are -lcrypt, -lrpcsvc and -lutil.
Add use of these variables which are currently set up to use PAM, so that they compile when MKPIC=no.
Also, in the telnetd case, reorder the order of the libraries, so that libtelnet.a comes before -ltermcap and -lutil, again to fix link error when MKPIC=no.
Discussed with thorpej and christos.
|
| 1.41 |
| 13-Jan-2005 |
thorpej | Test USE_PAM, not MKPAM.
|
| 1.40 |
| 12-Jan-2005 |
christos | undo accidental commit with MKPAM=yes
|
| 1.39 |
| 12-Jan-2005 |
christos | :x
|
| 1.38 |
| 10-Jan-2005 |
christos | LOGIN_CAP is mandatory for PAM.
|
| 1.37 |
| 10-Jan-2005 |
christos | Restore su.c to version 1.58, plus minor prototyping. Split pam into su_pam.c, and turn it off by default in the Makefile until it is tested and actually works. The current pam version does not set ruid properly anymore.
|
| 1.36 |
| 08-Jan-2005 |
lukem | add DPADD
|
| 1.35 |
| 07-Jan-2005 |
manu | Add PAM support to su
|
| 1.34 |
| 11-Dec-2003 |
dyoung | Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no) and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist complained of missing files.
* move kerberos- and kerberos 4-only files into new flists, distrib/sets/lists/*/krb.*
* make the flist generators grok MKKERBEROS{,4} variables
* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no. 9 out of 10 experts agree that it is ludicrous to build w/ KERBEROS4 and w/o KERBEROS5.
* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.
* omit some Kerberos-only subdirectories from the build as MKKERBEROS{,4} indicate
(I acknowledge the sentiment that flists are the wrong way to go, and that the makefiles should produce the metalog directly. That sounds to me like the right way to go, but I am not prepared to do revamp all the makefiles. While my approach is expedient, it fits painlessly within the current build architecture until we are delivered from flist purgatory, and it does not postpone our delivery. Fair enough?)
|
| 1.33 |
| 23-Aug-2003 |
lha | libkrb depends on libdes, patch in private mail from Harold Gutch logix at foobar franken de
|
| 1.32 |
| 20-Aug-2003 |
christos | Normalize the program's compilation options so they are all of the form SU_ and document them.
|
| 1.31 |
| 24-Jul-2003 |
tron | Backout previous and revert su(1) to dynamic linking instead.
|
| 1.30 |
| 24-Jul-2003 |
tron | Link with "libdes" if Kerberos IV support is enabled.
|
| 1.29 |
| 23-Jul-2003 |
itojun | split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se (build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
|
| 1.28 |
| 23-Oct-2002 |
itojun | add DPADD.
|
| 1.27 |
| 22-Mar-2002 |
thorpej | Split the notion of building Hesiod, Kerberos, S/key, and YP infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control building of support for using the corresponding API in various libraries/programs that can use it.
As discussed on tech-toolchain.
|
| 1.26 |
| 11-Jan-2001 |
sjg | SU_INDIRECT_GROUP should not be on by default.
|
| 1.25 |
| 10-Jan-2001 |
sjg | If SU_INDIRECT_GROUP is defined (it is by default), then su will consider that SUGROUP and ROOTAUTH group contain the names of users and groups. If user is not found in the list check_ingroup() recurses on each member until either user is found or end of chain is reached.
The above allows su's use of the wheel group to be extended to a large number of users without necessarily putting them in group wheel, and in a way that will work over NIS that simply extending the line length limit in getgrent.c cannot.
|
| 1.24 |
| 18-Oct-2000 |
simonb | Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile.
|
| 1.23 |
| 03-Aug-2000 |
assar | remove -lvers, it's not used
|
| 1.22 |
| 03-Aug-2000 |
assar | update build infrastructure for heimdal 0.3a
|
| 1.21 |
| 23-Jul-2000 |
mycroft | Fix library order.
|
| 1.20 |
| 10-Jul-2000 |
assar | add Kerberos5 support
|
| 1.19 |
| 23-Jun-2000 |
thorpej | Add MK... variables to enable/disable various aspects of building crypto support into the system. See share/mk/bsd.README for more a full description.
|
| 1.18 |
| 20-Jun-2000 |
thorpej | branches: 1.18.2; Merge a bunch of things from crypto-us and crypto-intl into basesrc, adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate bsd.crypto.mk.
There is still a bunch more work to do, but crypto is now more-or-less fully merged into the base NetBSD distribution.
|
| 1.17 |
| 14-Jan-2000 |
mjl | branches: 1.17.2; Implement login_cap capability lookup.
|
| 1.16 |
| 20-Jul-1999 |
mrg | optionally include CRYPTOPATH Makefile.frag files.
|
| 1.15 |
| 12-Jul-1999 |
thorpej | Use bsd.crypto.mk.
|
| 1.14 |
| 11-Jul-1999 |
kim | Allow people in group wheel to use the ROOTAUTH group. Pick up SUROOTAUTH (presumably from /etc/mk.conf).
|
| 1.13 |
| 18-Feb-1999 |
scottr | branches: 1.13.2; Remove the crypto-related bits until such time as we have a fully- integrated source tree. Export-controlled versions of these are now built during the domestic build process.
|
| 1.12 |
| 12-Oct-1997 |
mycroft | Minor changes.
|
| 1.11 |
| 12-Oct-1997 |
mycroft | Make this compile without SKEY.
|
| 1.10 |
| 02-Jul-1997 |
lukem | As per discussion with mrg, back out parts of previous change.
The appropriate entry in /etc/group as returned by getgrnam() is used to determine if 'su root' may be permitted, rather than checking if membership exists in the result of getgroups().
The following changes were made regarding the behaviour of the special group for 'su root' * allow for definition of SUGROUP (defaults to "wheel") to override group name. * use getgrnam(SUGROUP) instead of getgrgid(0). * only scan getgrnam(SUGROUP)->gr_mem when checking for group membership. * be more specific as to why 'su root' failed
NOTE: If a user's primary group is SUGROUP, and they're not a member of SUGROUP in /etc/group, they will not be able to su.
|
| 1.9 |
| 09-Jan-1997 |
tls | RCS ID police
|
| 1.8 |
| 09-Jan-1997 |
tls | Sync to 4.4BSD-Lite2
|
| 1.7 |
| 12-Oct-1996 |
christos | Fix PR/2837: su [login [args]] had the wrong usage and did not work properly. Build the correct argument list and add -c for the shells. Fix PR/2839: su will not build with Kerberos.
- Also: -Don't coredump when $TERM is not set. -Add prototypes, remove local old style declarations of system functions. -Recognize shells that contain "csh" as being csh alike. -Don't build with SKEY unconditionally. Obey bsd.own.mk.
|
| 1.6 |
| 24-May-1994 |
deraadt | add skey support
|
| 1.5 |
| 07-Oct-1993 |
cgd | always use libcrypt
|
| 1.4 |
| 30-Jul-1993 |
mycroft | Add RCS identifiers.
|
| 1.3 |
| 26-Apr-1993 |
cgd | changed to use new libcrypt scheme.
|
| 1.2 |
| 22-Mar-1993 |
cgd | added support for using real crypt
|
| 1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
| 1.1.1.2 |
| 10-Dec-1994 |
jtc | imported from 4.4lite
|
| 1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
| 1.13.2.1 |
| 08-Jan-2000 |
he | Pull up revision 1.14 (requested by kim): Allow the make variable SUROOTAUTH to be set to a group where the members can use their own password to authenticate to su to root. By default this is not set, retaining the traditional behaviour.
|
| 1.17.2.1 |
| 23-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
| 1.18.2.3 |
| 18-Oct-2000 |
tv | Pull up 1.24 [simonb]: Remove INSTALLFLAGS=-fschg.
|
| 1.18.2.2 |
| 24-Jun-2000 |
thorpej | Update from trunk: Add MK... variables to enable/disable various aspects of building crypto support into the system. See share/mk/bsd.README for more a full description.
|
| 1.18.2.1 |
| 20-Jun-2000 |
thorpej | file Makefile was added on branch netbsd-1-5 on 2000-06-24 06:59:36 +0000
|
| 1.42.2.1 |
| 16-Dec-2005 |
tron | Pull up following revision(s) (requested by hubertf in ticket #1061): usr.bin/su/Makefile: revision 1.43 Use LOGIN_CAP even in the pam case.
|
| 1.46.4.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|