Commit | Line | Data |
---|---|---|
8b3c87f0 P |
1 | # Le fichier /var/lib/git/root/info/exclude à modifier ou créer |
2 | # Par défaut, on exclut tout sauf /etc | |
3 | /* | |
4 | !/etc | |
5 | # ... mais dans /etc on interdit certains fichiers : | |
6 | /etc/*shadow* | |
7 | /etc/ssh/ssh_host_*_key | |
96eb6687 | 8 | /etc/krb5.keytab |
8b3c87f0 P |
9 | /etc/mtab |
10 | /etc/adjtime | |
11 | /etc/ld.so.cache | |
70e520a0 | 12 | /etc/lvm/.cache |
761acdfa | 13 | /etc/lvm/archive |
70e520a0 | 14 | /etc/blkid.tab* |
72be4c02 | 15 | /etc/ppp/*-secrets |
70e520a0 P |
16 | /etc/aliases.db |
17 | /etc/postfix/*.db | |
18 | /etc/postfix/*/*.db | |
72be4c02 | 19 | /etc/exim4/passwd.client |
70e520a0 | 20 | /etc/samba/schannel_store.tdb |
8b3c87f0 | 21 | # On n'interdit pas non plus le parcours de /usr. Mais dans ce parcours, |
70e520a0 | 22 | # on interdit tout sauf /usr/local. C'est la technique pour inclure /usr/local |
8b3c87f0 P |
23 | !/usr |
24 | /usr/* | |
25 | !/usr/local | |
70e520a0 P |
26 | # Pareil pour la config de Bind en chroot |
27 | !/var | |
28 | /var/* | |
29 | !/var/chroot | |
30 | /var/chroot/* | |
31 | !/var/chroot/bind | |
32 | /var/chroot/bind/* | |
33 | !/var/chroot/bind/etc | |
34 | /var/chroot/bind/etc/bind/rndc.key | |
96eb6687 P |
35 | # Le /boot/grub/menu.lst peut être intéressant à suivre aussi |
36 | !/boot | |
37 | /boot/* | |
38 | !/boot/grub | |
39 | /boot/grub/* | |
40 | !/boot/grub/menu.lst | |
8b3c87f0 | 41 | # quelques type fichiers à ne pas jamais considérer, globalement : |
70e520a0 P |
42 | htpasswd |
43 | .htpasswd | |
8b3c87f0 P |
44 | *.dpkg-old |
45 | *.dpkg-new | |
46 | *.dpkg-dist | |
47 | *.ucf-old | |
48 | *.ucf-new | |
49 | *.ucf-dist | |
50 | .*.swp | |
51 | *~ | |
52 | *# | |
53 | *- | |
54 | *.bak | |
72be4c02 P |
55 | *.db |
56 | CVS | |
57 | .svn | |
58 | .bzr | |
59 | .git | |
96eb6687 P |
60 | # toutes les clés, généralement type partie privée RSA/DSA |
61 | *.key | |
761acdfa | 62 | *-key.pem |
72be4c02 | 63 | # on ne suit pas les log (d'ailleurs pourquoi sont-ils dans /etc ?!) |
96eb6687 | 64 | *.log |