Lots of work on new whitelist stuff

This commit is contained in:
Jacob Adams 2015-06-06 16:52:41 -04:00
parent 3cd42a4833
commit db9adcec7f
21 changed files with 504 additions and 18 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
. ./releasetools/netbsd2minix/common.sh
# Assume $1 is whitelist working directory
cd $1
while read $dir
do
cp -rf $dir $SRC
done

View File

@ -0,0 +1,8 @@
# Current source tree
MINIX=.
# NetBSD2Minix folder
N2M=$MINIX/releasetools/netbsd2minix
# NetBSD source tree
NETBSD=$N2M/netbsd
# New source tree
SRC=$N2M/src

View File

@ -1,6 +1,11 @@
#!/bin/sh
./setupnetbsd.sh
./applyblacklist.sh < blacklist.txt
./setupminix.sh
cd src
make build
. releasetools/netbsd2minix/common.sh
$N2M/setupnetbsd.sh
$N2M/whitelists.sh
$N2M/setupminix.sh
cd $SRC
if [ `uname` -eq Minix ]
then
make build
else
./build.sh -m i386 build

View File

@ -1,16 +1,6 @@
#!/bin/sh
cd ../..
SRC=releasetools/netbsd2minix/src
COMMON=./releasetools/netbsd2minix/common
cp -r minix $SRC
. $COMMON
rm $SRC/build.sh
cp build.sh $SRC
cp -r distrib $SRC
rm $SRC/Makefile
cp Makefile $SRC
cp -r releasetools $SRC
cd $SRC/..

View File

@ -1 +1,3 @@
git clone --depth 1 git://github.com/jsonn/src
. releasetools/netbsd2minix/common.sh
git clone --depth 1 git://github.com/jsonn/src $NETBSD

View File

@ -0,0 +1,28 @@
cat
chmod
cp
date
dd
df
echo
ed
expr
hostname
kill
ksh
ln
ls
Makefile
Makefile.inc
mkdir
mv
pax
ps
pwd
rm
rmdir
sh
sleep
stty
sync
test

View File

@ -0,0 +1,3 @@
dist
include
lib

View File

@ -0,0 +1,8 @@
bsd
gpl3
historical
lgpl3
Makefile
mit
public-domain
README

View File

@ -0,0 +1,23 @@
adventure
arithmetic
banner
bcd
caesar
colorbars
factor
fish
fortune
Makefile
Makefile.inc
monop
morse
number
pig
ppt
primes
rain
random
rogue
snake
tetris
wargames

View File

@ -0,0 +1,4 @@
dist
Makefile
README
usr.bin

View File

@ -0,0 +1,109 @@
aio.h
a.out.h
ar.h
arpa
assert.h
atomic.h
bitstring.h
bm.h
cdbr.h
cdbw.h
complex.h
cpio.h
ctype.h
db.h
dirent.h
disktab.h
dlfcn.h
err.h
errno.h
fenv.h
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
hesiod.h
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h
iso646.h
kvm.h
langinfo.h
libgen.h
limits.h
link_aout.h
link_elf.h
link.h
locale.h
login_cap.h
lwp.h
Makefile
malloc.h
math.h
md2.h
memory.h
mntopts.h
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
netgroup.h
nlist.h
nl_types.h
nsswitch.h
paths.h
protocols
pwd.h
quota.h
randomid.h
ranlib.h
re_comp.h
regex.h
regexp.h
resolv.h
res_update.h
rmt.h
rpc
rpcsvc
sched.h
search.h
semaphore.h
setjmp.h
sgtty.h
signal.h
spawn.h
ssp
stab.h
stdbool.h
stddef.h
stdio.h
stdlib.h
string.h
stringlist.h
strings.h
struct.h
sysexits.h
tar.h
tgmath.h
time.h
ttyent.h
tzfile.h
ucontext.h
ulimit.h
unistd.h
util.h
utime.h
utmp.h
utmpx.h
uuid.h
vis.h
wchar.h
wctype.h
wordexp.h

View File

@ -0,0 +1,26 @@
bumpversion
checkoldver
checkver
checkvers
csu
libbz2
libc
libcrypt
libcurses
libc_vfp
libedit
libexecinfo
libform
libm
libmenu
libpci
libprop
libpuffs
librefuse
librmt
libterminfo
libutil
libz
lua
Makefile
Makefile.inc

View File

@ -0,0 +1,7 @@
fingerd
ftpd
getty
ld.elf_so
Makefile
Makefile.inc
makewhatis

View File

@ -0,0 +1,12 @@
chown
fsck
fsck_ext2fs
init
Makefile
Makefile.inc
mknod
newfs_ext2fs
nologin
ping
reboot
shutdown

View File

@ -0,0 +1,7 @@
legal
Makefile
Makefile.inc
misc
mk
terminfo
zoneinfo

View File

@ -0,0 +1,14 @@
arch
compat
conf
dev
external
fs
lib
Makefile
net
netinet
netinet6
sys
ufs
uvm

View File

@ -0,0 +1,22 @@
bin
crypto
dev
fs
games
h_macros.h
include
ipf
kernel
lib
libexec
Makefile
Makefile.inc
modules
net
README
rump
sbin
share
sys
usr.bin
usr.sbin

View File

@ -0,0 +1,59 @@
awk
binstall
binutils
cat
cksum
compat
file
gcc
genassym
gmake
gmp
headerlist
host-mkdep
installboot
join
lex
llvm
llvm-clang
llvm-clang-tblgen
llvm-include
llvm-lib
llvm-librt
llvm-lld
llvm-mcld
llvm-tblgen
lorder
m4
make
Makefile
Makefile.gmakehost
Makefile.gnuhost
Makefile.gnuwrap
Makefile.host
Makefile.nbincludes
makewhatis
mandoc
mkdep
mkfs.mfs
mkheaderlist.sh
mknod
mkproto
mktemp
mpc
mpfr
mtree
nbperf
partition
pax
pwd_mkdb
sed
stat
strfile
texinfo
tic
toproto
tsort
writeisofs
yacc
zic

View File

@ -0,0 +1,124 @@
apropos
asa
banner
basename
bdes
bzip2
bzip2recover
cal
calendar
checknr
chpass
cksum
col
colcrt
colrm
column
comm
csplit
ctags
cut
deroff
dirname
du
env
expand
false
finger
fold
fpr
from
fsplit
ftp
genassym
getopt
gzip
head
hexdump
id
indent
infocmp
join
jot
lam
last
ldd
leave
lock
login
logname
lorder
m4
machine
make
Makefile
Makefile.inc
man
menuc
mesg
mkdep
mkfifo
mkstr
mktemp
msgc
nbperf
newgrp
nice
nl
nohup
passwd
paste
patch
pathchk
pr
printenv
printf
pwhash
renice
rev
sdiff
sed
seq
shar
shlock
shuffle
soelim
sort
split
stat
su
tail
tee
tic
touch
tput
tr
true
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
users
uudecode
uuencode
uuidgen
vis
w
wall
wc
what
whatis
whereis
who
whois
write
xargs
xinstall
xstr
yes

View File

@ -0,0 +1,16 @@
chroot
i2cscan
installboot
link
Makefile
Makefile.inc
mtree
postinstall
pwd_mkdb
rdate
traceroute
unlink
user
vipw
vnconfig
zic

View File

@ -0,0 +1,11 @@
#!/bin/sh
. releasetools/netbsd2minix/common.sh
cd $N2M/whitelist
for $item in `ls`
do
$N2M/applywhitelist.sh $item < $item
done
cd ..
./applywhitelist $MINIX < minix.txt