Subject: sup security weirdness
To: None <current-users@NetBSD.ORG>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: current-users
Date: 02/17/1996 23:21:39
I have two NetBSD machines; a SPARCstation 2 running 1.0 and a Pentium 120
running 1.1.

Both machines have current sup's up through early this morning (i.e. Feb. 17).
I would normally expect that both would have exactly the same last.* files,
but this isn't the case.  The "last.security" files show some interesting
differences:

netbsd4me:1:40 [/tmp] % diff -rc0 /usr/sup/current/last.security last.security
*** /usr/sup/current/last.security      Sat Feb 17 04:45:09 1996
--- last.security       Sat Feb 17 22:14:26 1996
***************
*** 2 ****
--- 3 ----
+ src/domestic/bdes
***************
*** 7 ****
--- 9 ----
+ src/domestic/ed
***************
*** 33 ****
--- 36 ----
+ src/domestic/init
***************
*** 184 ****
--- 188 ----
+ src/domestic/lib/librkinit
***************
*** 203 ****
--- 208 ----
+ src/domestic/libcrypt

(The "last.security" with the additions is from the NetBSD/i386 1.1 system.)

And sure enough, this stuff is on the PC, but not on the SPARCstation:

i386# ls /usr/src/domestic
Makefile        ed/             lib/            usr.bin/
bdes/           include/        libcrypt/       usr.sbin/
bin/            init/           sbin/

netbsd4me:1:36 [/tmp] % ls /usr/src/domestic
Makefile        include/        sbin/           usr.sbin/
bin/            lib/            usr.bin/

The timestamps on these directories are all about the same:

i386# ls -ldtg /usr/src/domestic/{bdes,ed,init,lib/librkinit,libcrypt}
drwxrwxr-x  2 root  wheel  512 Jan 25 04:10 /usr/src/domestic/libcrypt/
drwxrwxr-x  2 root  wheel  512 Jan 25 04:10 /usr/src/domestic/lib/librkinit/
drwxrwxr-x  2 root  wheel  512 Jan 25 04:09 /usr/src/domestic/init/
drwxrwxr-x  2 root  wheel  512 Jan 25 04:09 /usr/src/domestic/ed/
drwxrwxr-x  2 root  wheel  512 Jan 25 04:09 /usr/src/domestic/bdes/

Here's the SPARCstation's (very typical) supfile:

netbsd4me:1:32 [/tmp] % cat /usr/lib/supfiles/coll.list
current release=security host=sup.netbsd.org hostbase=/a/anon_ftp base=/usr prefix=/usr backup use-rel-suffix delete keep
current release=doc host=sup.netbsd.org hostbase=/a/anon_ftp base=/usr prefix=/usr backup use-rel-suffix delete keep
current release=othersrc host=sup.netbsd.org hostbase=/a/anon_ftp base=/usr prefix=/usr backup use-rel-suffix delete keep
current release=allsrc host=sup.netbsd.org hostbase=/a/anon_ftp base=/usr prefix=/usr backup use-rel-suffix delete keep

netbsd4me:1:33 [/tmp] % cat /usr/lib/supfiles/coll.what
sup/current

Both machines invoke "sup" from "cron" in exactly the same manner:

45      4       *       *       *       /usr/local/sbin/sup -m -v -s 2>&1

The *only* difference between the SPARCstation's "coll.list" and the PC's is
an additional "old" added after the "keep" on all 4 lines; added after I'd
asked about not wanting to re-sup the entire universe after having already
loaded the 1.1 sources from the 1.1 distribution.

It looks like bdes, ed, init, and libcrypt are leftovers from the 1.1 src I
originally loaded, and got moved later on to subdirs.  If so, then I wonder
why the "delete" I use in my supfiles didn't delete them?  Also, I have *no*
"librkinit" bits anywhere on my SPARCstation.  Any idea why?

	- Greg