Annotation of embedaddon/strongswan/src/libimcv/plugins/imv_attestation/build-database.sh, revision 1.1.1.1
1.1 misho 1: #!/bin/sh
2:
3: p="Ubuntu 14.04 x86_64"
4: a="x86_64-linux-gnu"
5: k="3.13.0-46-generic"
6:
7: for hash in sha1 sha256
8: do
9: ipsec attest --add --product "$p" --$hash --dir /sbin
10: ipsec attest --add --product "$p" --$hash --dir /usr/sbin
11: ipsec attest --add --product "$p" --$hash --dir /bin
12: ipsec attest --add --product "$p" --$hash --dir /usr/bin
13:
14: ipsec attest --add --product "$p" --$hash --file /etc/init.d/rc
15: ipsec attest --add --product "$p" --$hash --file /etc/init.d/rcS
16: ipsec attest --add --product "$p" --$hash --dir /etc/network/if-pre-up.d
17: ipsec attest --add --product "$p" --$hash --dir /etc/network/if-up.d
18: ipsec attest --add --product "$p" --$hash --dir /etc/ppp/ip-down.d
19: ipsec attest --add --product "$p" --$hash --dir /etc/rcS.d
20: ipsec attest --add --product "$p" --$hash --dir /etc/rc2.d
21: ipsec attest --add --product "$p" --$hash --file /etc/rc.local
22: ipsec attest --add --product "$p" --$hash --dir /etc/resolvconf/update.d
23: ipsec attest --add --product "$p" --$hash --file /etc/resolvconf/update-libc.d/avahi-daemon
24: ipsec attest --add --product "$p" --$hash --dir /etc/update-motd.d
25:
26: ipsec attest --add --product "$p" --$hash --dir /lib
27: ipsec attest --add --product "$p" --$hash --file /lib/crda/setregdomain
28: ipsec attest --add --product "$p" --$hash --dir /lib/ebtables
29: ipsec attest --add --product "$p" --$hash --file /lib/init/apparmor-profile-load
30: ipsec attest --add --product "$p" --$hash --file /lib/resolvconf/list-records
31: ipsec attest --add --product "$p" --$hash --dir /lib/ufw
32: ipsec attest --add --product "$p" --$hash --dir /lib/udev
33: ipsec attest --add --product "$p" --$hash --dir /lib/systemd
34: ipsec attest --add --product "$p" --$hash --dir /lib/xtables
35: ipsec attest --add --product "$p" --$hash --dir /lib/$a
36: ipsec attest --add --product "$p" --$hash --dir /lib/$a/plymouth
37: ipsec attest --add --product "$p" --$hash --dir /lib/$a/plymouth/renderers
38: ipsec attest --add --product "$p" --$hash --dir /lib/$a/security
39:
40: ipsec attest --add --product "$p" --$hash --file /lib64/ld-linux-x86-64.so.2
41:
42: for file in `find /usr/lib -name *.so`
43: do
44: ipsec attest --add --product "$p" --$hash --file $file
45: done
46:
47: for file in `find /usr/lib -name *service`
48: do
49: ipsec attest --add --product "$p" --$hash --file $file
50: done
51:
52: ipsec attest --add --product "$p" --$hash --dir /usr/lib
53: ipsec attest --add --product "$p" --$hash --dir /usr/lib/accountsservice
54: ipsec attest --add --product "$p" --$hash --dir /usr/lib/at-spi2-core
55: ipsec attest --add --product "$p" --$hash --file /usr/lib/avahi/avahi-daemon-check-dns.sh
56: ipsec attest --add --product "$p" --$hash --file /usr/lib/dbus-1.0/dbus-daemon-launch-helper
57: ipsec attest --add --product "$p" --$hash --dir /usr/lib/gvfs
58: ipsec attest --add --product "$p" --$hash --file /usr/lib/firefox/firefox
59: ipsec attest --add --product "$p" --$hash --dir /usr/lib/NetworkManager
60: ipsec attest --add --product "$p" --$hash --dir /usr/lib/pm-utils/power.d
61: ipsec attest --add --product "$p" --$hash --file /usr/lib/policykit-1/polkitd
62: ipsec attest --add --product "$p" --$hash --file /usr/lib/thunderbird/thunderbird
63: ipsec attest --add --product "$p" --$hash --dir /usr/lib/ubuntu-release-upgrader
64: ipsec attest --add --product "$p" --$hash --dir /usr/lib/update-notifier
65:
66: ipsec attest --add --product "$p" --$hash --dir /usr/lib/$a
67: ipsec attest --add --product "$p" --$hash --file /usr/lib/$a/mesa/libGL.so.1.2.0
68: ipsec attest --add --product "$p" --$hash --dir /usr/lib/$a/samba
69: ipsec attest --add --product "$p" --$hash --dir /usr/lib/$a/sasl2
70:
71: ipsec attest --add --product "$p" --$hash --dir /usr/share/language-tools
72:
73: ipsec attest --add --product "$p" --$hash --file /init \
74: --measdir /usr/share/initramfs-tools
75:
76: ipsec attest --add --product "$p" --$hash --file /scripts/functions \
77: --measdir /usr/share/initramfs-tools/scripts
78:
79: for file in `find /lib/modules/$k -name *.ko`
80: do
81: ipsec attest --add --product "$p" --$hash --file $file
82: done
83: done
84:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>