OpenBSD CVS

CVS log for src/usr.bin/skeyaudit/skeyaudit.c


[BACK] Up to [local] / src / usr.bin / skeyaudit

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:03 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:26 2019 UTC (5 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Apr 2 14:37:42 2016 UTC (8 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.26: +30 -10 lines
Diff to previous 1.26 (colored)

Another use for fcntl() and thus of the superfluous 3rd parameter
is when sanitising standard fd's before calling daemon().

Use a tweaked version of the ssh(1) function in all three places
found using fcntl() this way.

ok jca@ beck@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Nov 1 14:02:37 2015 UTC (8 years, 6 months ago) by tim
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.25: +9 -1 lines
Diff to previous 1.25 (colored)

Pledge; OK millert@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:11 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.24 / (download) - annotate - [select for diffs], Wed Nov 12 16:13:46 2008 UTC (15 years, 6 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Usage -> usage.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 11 20:50:54 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

rfc 3834 support: Auto-Submitted: auto-generated on lots of things; from Tamas TEVESZ; ok millert

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 26 17:06:39 2005 UTC (18 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

3rd arg to F_GETFL fcntl doesn't need to be a pointer, 0 is fine.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 6 21:50:24 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

- simplify SYNOPSIS
- sync usage()

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 3 01:52:41 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.19: +11 -22 lines
Diff to previous 1.19 (colored)

Use an ISC-tyle license for all my code; it is simpler and more permissive.

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 6 15:34:08 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Don't call setusercontext() to change uid unless uid == 0; found by mpech@

Revision 1.18 / (download) - annotate - [select for diffs], Tue May 6 10:45:49 2003 UTC (21 years ago) by mpech
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

While I'm here sync usage() w/ manual.

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 2 20:10:46 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.16: +28 -5 lines
Diff to previous 1.16 (colored)

o Don't close stdout in interactive mode; mpech@
Extra paranoia:
o Close keyfile by hand each time in -a mode so we don't leak an fd
to sendmail
o If any of std{out,in,err} are not open, open /dev/null in their stead.
o If stdout is not open and -i was specified, just exit since there
  is nowhere to print the info.

Thanks for mpech@ for his testing and bug finding ;-)

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 28 20:58:35 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

Don't try to close key.keyfile in -a mode, skeygetnext() will have
already done it and we are headed for exit anyway.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 14 04:29:04 2003 UTC (21 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Replace strcpy() of a constant w/ strlcpy() for easy grepping;
from Raymond M Schneider

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 29 15:32:10 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.13: +23 -26 lines
Diff to previous 1.13 (colored)

Don't call fclose() on a NULL file handle; from markus@
Also:
Use ANSI function headers
Use pid_t for pids
Never do exit(-1)

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 16 03:50:42 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.12: +4 -7 lines
Diff to previous 1.12 (colored)

Change S/Key stuff from using a flat file (/etc/skeykeys) to a directory
where each user gets their own file, which is owned by that user.

An old S/Key database may be converted by running "skeyinit -C" as root.

Programs that need to access the S/Key database no longer need to be
setuid root.  They must now be setgid auth instead.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:52 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:52 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.10 / (download) - annotate - [select for diffs], Wed Sep 20 21:53:49 2000 UTC (23 years, 8 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +13 -5 lines
Diff to previous 1.9 (colored)

Change the message if the S/Key sequence has expired.  millert@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:40 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.8: +21 -27 lines
Diff to previous 1.8 (colored)

Add calls to setusercontext() and login_get*().  We basically call
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 21 22:14:02 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.7: +2 -5 lines
Diff to previous 1.7 (colored)

Remove the advertising clause in my old license, it impedes free use
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 9 00:04:19 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

use setlogin(2).

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 24 03:43:59 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.5: +120 -44 lines
Diff to previous 1.5 (colored)

Add -a (audit all users) flag and do our pipes.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 23 07:02:02 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.4: +4 -5 lines
Diff to previous 1.4 (colored)

Use _PATH_SKEYKEYS and fix a typo.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 23 06:31:17 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

close keyfile nicely.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 23 05:17:46 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Add a seteuid() just in case someone decides to make this setuid
by some uid other than 0.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 23 04:31:17 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.1: +32 -0 lines
Diff to previous 1.1 (colored)

copyright

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 23 04:24:35 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN

Replace skeyaudit.sh with a setuid binary (necessary for mode 0600 skeykeys)

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.