Subject: misc/8853: mtree files need some touching up
To: None <gnats-bugs@gnats.netbsd.org>
From: None <windsor@warthog.com>
List: netbsd-bugs
Date: 11/22/1999 18:57:46
>Number: 8853
>Category: misc
>Synopsis: mtree files need some touching up
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 22 18:57:01 1999
>Last-Modified:
>Originator: Rob Windsor
>Organization:
Nose-Pickers Anonymous
>Release: 1.4.1-BRANCH, 19991102
>Environment:
System: NetBSD kenku 1.4.1 NetBSD 1.4.1 (KENKU) #3: Tue Nov 2 21:12:26 CST 1999 windsor@kenku:/usr/src/sys/arch/i386/compile/KENKU i386
>Description:
For one, an empty /etc/ppp should be created upon install.
Also, there are some files that we should watch, some may
exist ("optional" flag), and others do on a base install.
>How-To-Repeat:
well, look at a fresh install and see how few files in /etc
that /etc/mtree/special monitors.
>Fix:
apply following patch and commit (careful, following has tabs):
--- src/etc/mtree/NetBSD.dist.old Mon Nov 22 20:26:08 1999
+++ src/etc/mtree/NetBSD.dist Mon Nov 22 20:52:40 1999
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.dist,v 1.92 1999/10/09 15:33:36 hubertf Exp $
+# $NetBSD$
# @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
/set type=dir uname=root gname=wheel mode=0755
@@ -83,6 +83,11 @@
# ./etc/postfix
postfix
# ./etc/postfix
+..
+
+# . /etc/ppp
+ppp
+# . /etc/ppp
..
# ./etc/sliphome
--- src/etc/mtree/special.old Mon Nov 22 20:26:13 1999
+++ src/etc/mtree/special Mon Nov 22 20:47:52 1999
@@ -1,4 +1,4 @@
-# $NetBSD: special,v 1.24 1999/06/23 17:12:15 frueauf Exp $
+# $NetBSD$
# @(#)special 8.2 (Berkeley) 1/23/94
#
# Hand-crafted mtree specification for the dangerous files.
@@ -17,6 +17,7 @@
etc type=dir mode=0755 uname=root gname=wheel
aliases type=file mode=0644 uname=root gname=wheel
aliases.db type=file mode=0644 uname=root gname=wheel
+changelist type=file mode=0644 uname=root gname=wheel
# XXX remove crontab entry completely ?
crontab type=file mode=0644 uname=root gname=wheel optional
csh.cshrc type=file mode=0644 uname=root gname=wheel
@@ -24,29 +25,47 @@
csh.logout type=file mode=0644 uname=root gname=wheel
daily type=file mode=0644 uname=root gname=wheel
daily.conf type=file mode=0644 uname=root gname=wheel
+dhclient-script type=file mode=0777 uname=root gname=wheel
disklabels type=dir mode=0755 uname=root gname=wheel ignore
-.. #disklabels
+.. #etc/disklabels
+dm.conf type=file mode=0644 uname=root gname=wheel
exports type=file mode=0644 uname=root gname=wheel optional
fstab type=file mode=0644 uname=root gname=wheel
+ftpchroot type=file mode=0644 uname=root gname=wheel
ftpusers type=file mode=0644 uname=root gname=wheel
+gettytab type=file mode=0644 uname=root gname=wheel
group type=file mode=0644 uname=root gname=wheel
+hosts type=file mode=0644 uname=root gname=wheel
hosts.equiv type=file mode=0600 uname=root gname=wheel optional
inetd.conf type=file mode=0644 uname=root gname=wheel
kerberosIV type=dir mode=0755 uname=root gname=wheel ignore optional
-.. #kerberosIV
+.. #etc/kerberosIV
ld.so.conf type=file mode=0644 uname=root gname=wheel optional
lkm.conf type=file mode=0644 uname=root gname=wheel optional
+localtime type=link mode=0755 uname=root gname=wheel
mail.rc type=file mode=0644 uname=root gname=wheel
+mailer.conf type=file mode=0644 uname=root gname=wheel
+man.conf type=file mode=0644 uname=root gname=wheel
master.passwd type=file mode=0600 uname=root gname=wheel
+mk.conf type=file mode=0644 uname=root gname=wheel optional
monthly type=file mode=0644 uname=root gname=wheel
monthly.conf type=file mode=0644 uname=root gname=wheel
+mrouted.conf type=file mode=0644 uname=root gname=wheel
mtree type=dir mode=0755 uname=root gname=wheel
special type=file mode=0444 uname=root gname=wheel
-.. #mtree
+.. #etc/mtree
named.boot type=file mode=0644 uname=root gname=wheel optional
+named.conf type=file mode=0644 uname=root gname=wheel optional
+namedb type=dir mode=0644 uname=root gname=wheel
+.. #etc/namedb
netstart type=file mode=0644 uname=root gname=wheel
+networks type=file mode=0644 uname=root gname=wheel
newsyslog.conf type=file mode=0644 uname=root gname=wheel
+nsswitch.conf type=file mode=0644 uname=root gname=wheel
passwd type=file mode=0644 uname=root gname=wheel
+phones type=file mode=0644 uname=root gname=wheel
+ppp type=dir mode=0755 uname=root gname=wheel ignore
+.. #etc/ppp
printcap type=file mode=0644 uname=root gname=wheel
profile type=file mode=0644 uname=root gname=wheel
protocols type=file mode=0644 uname=root gname=wheel
@@ -57,6 +76,8 @@
rc.shutdown type=file mode=0644 uname=root gname=wheel
rc.shutdown.local type=file mode=0644 uname=root gname=wheel optional
rc.subr type=file mode=0644 uname=root gname=wheel
+rc.wscons type=file mode=0644 uname=root gname=wheel optional
+remote type=file mode=0644 uname=root gname=wheel
resolv.conf type=file mode=0644 uname=root gname=wheel optional
rpc type=file mode=0644 uname=root gname=wheel
security type=file mode=0644 uname=root gname=wheel
@@ -69,6 +90,7 @@
ttys type=file mode=0644 uname=root gname=wheel
weekly type=file mode=0644 uname=root gname=wheel
weekly.conf type=file mode=0644 uname=root gname=wheel
+wscons.conf type=file mode=0644 uname=root gname=wheel optional
.. #etc
root type=dir mode=0755 uname=root gname=wheel
>Audit-Trail:
>Unformatted: