samhain: ignore /etc/exim4/conf.d
[mirror/dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70 IgnoreMissing=/etc/lvm/archive/.*.vg
71 IgnoreMissing=/var/lib/puppet/clientbucket/.*
72
73 [Attributes]
74 ##
75 ## for these files, only changes in permissions and ownership are checked
76 ##
77 file=/etc/mtab
78 file=/etc/ssh_random_seed
79 file=/etc/asound.conf
80 file=/etc/bacula/bacula-fd.conf
81 file=/etc/localtime
82 file=/etc/ioctl.save
83 file=/etc/passwd.backup
84 file=/etc/shadow.backup
85 file=/etc/postfix/prng_exch
86 file=/etc/adjtime
87 file=/etc/lvm/.cache
88 file=/etc/lvm/cache
89 file=/etc/lvm/cache/.cache
90 file=/etc/network/run/ifstate
91 file=/var/state/samhain/samhain_file
92 file=/etc/bind/zones/db.debian.net
93 file=/etc/exim4/bsmtp
94 file=/etc/fake-hwclock.data
95 <% if classes.include?("named::geodns") -%>
96 file=/etc/bind
97 file=/etc/bind/named.conf.acl
98 file=/etc/bind/named.conf.local
99 file=/etc/bind/geodns/named.conf.geo
100 file=/etc/bind/geodns/recvconf.files
101 <% end -%>
102 <% if classes.include?("named") -%>
103 file=/etc/bind/named.conf.options
104 <% end -%>
105 file=/etc/apache2/conf.d/puppet-builddlist
106 <% if classes.include?("roles::static_mirror") -%>
107 file=/etc/apache2/sites-available/static-vhosts-simple
108 file=/etc/static-clients.conf
109 <% elsif classes.include?("roles::static_master") -%>
110 file=/etc/static-clients.conf
111 <% elsif classes.include?("roles::static_source") -%>
112 file=/etc/static-clients.conf
113 <% end -%>
114 <% if classes.include?("apache2") -%>
115 file=/etc/apache2/conf-available/puppet-ssl-key-pins.conf
116 <% end -%>
117 file=/etc/multipath/wwids
118 <%- if has_variable?("bgpd") && @bgpd -%>
119 file=/etc/quagga/bgpd.conf
120 <% end -%>
121 <%- if has_variable?("zebra") && @zebra -%>
122 file=/etc/quagga/zebra.conf
123 <% end -%>
124
125 #
126 # There are files in /etc that might change, thus changing the directory
127 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
128 #
129 file=/etc
130 file=/etc/ssh
131 file=/etc/network/run
132 file=/etc/bind/zones
133 file=/etc/spamassassin/sa-update-keys
134 file=/etc/init.d/.depend.boot
135 file=/etc/init.d/.depend.start
136 file=/etc/init.d/.depend.stop
137
138 # These are the directories for the files we handle with puppet
139 <% if classes.include?("apache2") -%>
140 file=/etc/apache2/conf-available
141 files=/etc/apache2/mods-enabled
142 files=/etc/apache2/sites-available
143 <% end -%>
144 file=/etc/bacula
145 file=/etc/samhain
146 file=/etc/munin
147 file=/etc/munin/plugins
148 file=/etc/munin/plugin-conf.d
149 file=/etc/munin/munin-conf.d
150 file=/etc/exim4
151 file=/etc/exim4/ssl
152 file=/etc/exim4/conf.d
153 file=/etc/apt
154 file=/etc/apt/apt.conf.d
155 file=/etc/apt/sources.list.d
156 file=/etc/apt/preferences.d
157 file=/etc/default
158 file=/etc/logrotate.d
159 file=/etc/nagios
160 file=/etc/nagios/nrpe.d
161 file=/etc/nagios/obsolete-packages-ignore.d
162 file=/etc/bind/geodns
163 <% if scope.function_has_role(['nagiosmaster']) -%>
164 file=/etc/nagios3/puppetconf.d
165 <% end -%>
166 file=/etc/puppet
167 file=/etc/cron.d
168 file=/etc/cron.weekly
169 file=/usr/lib/nagios/plugins
170 file=/usr/sbin
171 file=/etc/monit
172 file=/etc/monit/monit.d
173 file=/etc/pam.d
174 file=/etc/schroot/default
175 file=/etc/schroot/dsa
176 file=/etc/schroot/dsa/default-mirror
177 file=/etc/schroot/setup.d
178 file=/etc/sysctl.d
179 file=/etc/syslog-ng
180 file=/etc/stunnel
181 file=/etc/ferm/
182 file=/etc/ferm/conf.d
183 file=/etc/ferm/dsa.d
184 file=/etc/rc.local
185 file=/etc/unbound
186 file=/etc/dsa
187 file=/etc/rabbitmq
188 <% if scope.function_has_role(['static_mirror']) or scope.function_has_role(['static_source']) or scope.function_has_role(['static_master']) -%>
189 file=/etc/ssh/userkeys
190 file=/etc/ssh/userkeys/staticsync
191 <% end -%>
192 <% if scope.function_has_role(['ssh.upload.d.o']) -%>
193 file=/etc/ssh/userkeys/buildd-uploader
194 <% end -%>
195 <% if scope.function_has_role(['buildd_master']) -%>
196 file=/etc/ssh/userkeys/wb-buildd.more
197 <% end -%>
198 file=/etc/rsyncd
199 <%- if @hostname == "sibelius" then -%>
200 file=/etc/tsm
201 file=/etc/tsm/TSM.PWD
202 <% end -%>
203 file=/etc/ssl/private
204
205
206 [LogFiles]
207 ##
208 ## for these files, changes in signature, timestamps, and size are ignored 
209 ##
210 file=/etc/motd
211
212 # is on tmpfs, ignore.
213 #file=/var/run/utmp
214
215
216 #####################################################################
217 #
218 # This would be the proper syntax for parts that should only be
219 #    included for certain hosts.
220 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
221 #    result still has the proper syntax for the config file.
222 # You may have any number of @HOSTNAME/@end brackets.
223 # HOSTNAME should be the fully qualified 'official' name 
224 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
225 #    No IP number - except if samhain cannot determine the 
226 #    fully qualified hostname.
227 #
228 # @HOSTNAME
229 # file=/foo/bar
230 # @end
231 #
232 # These are two examples for conditional inclusion/exclusion
233 # of a machine based on the output from 'uname -srm'
234 #
235 # $Linux:2.*.7:i666
236 # file=/foo/bar3
237 # $end
238 #
239 # !$Linux:2.*.7:i686
240 # file=/foo/bar2
241 # $end
242 #
243 #####################################################################
244
245 [GrowingLogFiles]
246 ##
247 ## for these files, changes in signature, timestamps, and increase in size
248 ##                  are ignored 
249 ##
250 file=/var/log/warn
251 file=/var/log/messages
252 file=/var/log/wtmp
253 file=/var/log/faillog
254 file=/var/log/auth.log
255 file=/var/log/daemon.log
256 file=/var/log/user.log
257 file=/var/log/kern.log
258 file=/var/log/syslog
259
260
261 [IgnoreAll]
262 dir=-1/srv
263 ##
264 ## for these files, no modifications are reported
265 ##
266 ## This file might be created or removed by the system sometimes.
267 ##
268 file=/etc/resolv.conf
269 <% if scope.lookupvar('site::nodeinfo')['buildd'] -%>
270 file=/etc/dupload.conf
271 file=/etc/buildd/buildd.conf
272 file=/etc/sbuild/sbuild.conf
273 <% end -%>
274 file=/etc/resolv.conf.pcmcia.save
275 file=/etc/nologin
276 file=/etc/postfix/debian.db
277 file=/etc/postfix/debian
278 file=/etc/ssh/ssh_known_hosts
279 file=/etc/ssh/ssh-rsa-shadow
280 file=/var/lib/misc/ssh-rsa-shadow
281 file=/etc/.da-backup.trace
282 file=/etc/postfix/debianhosts
283 file=/etc/postfix/debianhosts.db
284 file=/etc/blkid.tab
285 file=/etc/blkid.tab.old
286 file=/etc/resolv.conf.dhclient-new
287
288 # We handle these files with puppet - please to not be bothering us
289 file=/etc/dsa/pubsub.conf
290 file=/etc/nsswitch.conf
291 file=/etc/timezone
292 file=/etc/motd.tail
293 file=/etc/update-motd.d/
294 file=/etc/update-motd.d/puppet-motd
295 file=/etc/ntp.conf
296 file=/etc/samhain/samhainrc
297 file=/etc/munin/munin-node.conf
298 file=/etc/munin/plugin-conf.d/munin-node
299 dir=2/etc/munin/munin-conf.d
300 file=/etc/userdir-ldap.confc
301 file=/etc/exim4/blacklist
302 file=/etc/exim4/host_blacklist
303 file=/etc/exim4/callout_users
304 file=/etc/exim4/exim4.conf
305 file=/etc/exim4/grey_users
306 file=/etc/exim4/helo-check
307 file=/etc/exim4/locals
308 file=/etc/exim4/localusers
309 file=/etc/exim4/manualroute
310 file=/etc/exim4/rbllist
311 file=/etc/exim4/rhsbllist
312 file=/etc/exim4/submission-domains
313 file=/etc/exim4/virtualdomains
314 file=/etc/exim4/email-virtualdomains
315 file=/etc/exim4/whitelist
316 file=/etc/exim4/local-settings.conf
317 file=/etc/exim4/ssl/ca.crt
318 file=/etc/exim4/ssl/ca.crl
319 file=/etc/exim4/ssl/thishost.crt
320 file=/etc/exim4/ssl/thishost.key
321 dir=3/etc/exim4/email-virtualdomains
322 file=/etc/ssh/ssh_config
323 file=/etc/ssh/sshd_config
324 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
325 file=/etc/vsftpd.conf
326 file=/etc/aliases
327 file=/etc/multipath.conf
328 file=/etc/static-components.conf
329 file=/etc/rabbitmq/rabbitmq.config
330 file=/etc/rabbitmq/enabled_plugins
331 dir=/etc/bacula/storages-list.d
332 dir=/etc/bacula/storage-conf.d
333 dir=/etc/bacula/conf.d
334 <%=
335 out=""
336 if scope.lookupvar('site::nodeinfo')['heavy_exim']
337   out = '
338 file=/etc/exim4/surbl_whitelist.txt
339 file=/etc/exim4/exim_surbl.pl
340 file=/etc/exim4/ccTLD.txt
341 file=/etc/clamav-unofficial-sigs.conf
342 file=/etc/clamav-unofficial-sigs.dsa.conf
343 '
344 end
345 out
346 %>
347 file=/etc/munin/plugins/bind
348 file=/etc/munin/plugins/bind_views
349 file=/etc/munin/plugins/cpu
350 file=/etc/munin/plugins/df
351 file=/etc/munin/plugins/df_abs
352 file=/etc/munin/plugins/df_inode
353 file=/etc/munin/plugins/entropy
354 file=/etc/munin/plugins/forks
355 file=/etc/munin/plugins/interrupts
356 file=/etc/munin/plugins/iostat
357 file=/etc/munin/plugins/irqstats
358 file=/etc/munin/plugins/load
359 file=/etc/munin/plugins/memory
360 file=/etc/munin/plugins/ntp_offset
361 file=/etc/munin/plugins/ntp_states
362 file=/etc/munin/plugins/open_files
363 file=/etc/munin/plugins/open_inodes
364 file=/etc/munin/plugins/processes
365 file=/etc/munin/plugins/ps_apache2
366 file=/etc/munin/plugins/ps_exim4
367 file=/etc/munin/plugins/ps_vsftpd
368 file=/etc/munin/plugins/spamassassin
369 file=/etc/munin/plugins/swap
370 file=/etc/munin/plugins/uptime
371 file=/etc/munin/plugins/vmstat
372 file=/etc/munin/plugins/vfstpd
373 file=/etc/munin/plugins/apache_accesses
374 file=/etc/munin/plugins/apache_processes
375 file=/etc/munin/plugins/apache_volume
376 file=/etc/munin/plugins/apache_servers
377 file=/etc/munin/plugins/exim_mailqueue
378 file=/etc/munin/plugins/exim_mailstats
379 file=/etc/munin/plugins/postfix_mailqueue
380 file=/etc/munin/plugins/postfix_mailvolume
381 file=/etc/apache2/conf.d/resource-limits
382 file=/etc/apache2/mods-enabled/info.conf
383 file=/etc/apache2/mods-enabled/info.load
384 file=/etc/apache2/mods-enabled/server.conf
385 file=/etc/apache2/mods-enabled/server.load
386 file=/etc/apache2/conf.d/server-status
387 file=/etc/apache2/conf.d/local-serverinfo
388 file=/etc/apache2/sites-available/www.debian.org
389 file=/etc/apt/preferences
390 file=/etc/apt/sources.list.d/volatile.list
391 file=/etc/apt/sources.list.d/security.list
392 file=/etc/apt/sources.list.d/geoip.list
393 file=/etc/apt/sources.list.d/backports.debian.org.list
394 file=/etc/apt/sources.list.d/debian.org.list
395 file=/etc/apt/sources.list.d/db.debian.org.list
396 file=/etc/apt/sources.list.d/db.debian.org.restricted.list
397 file=/etc/apt/sources.list.d/debian.list
398 file=/etc/apt/sources.list.d/backports.org.list
399 file=/etc/apt/apt.conf.d/local-compression
400 file=/etc/apt/apt.conf.d/local-recommends
401 file=/etc/apt/apt.conf.d/local-pdiffs
402 file=/etc/apt/apt.conf.d/local-ssl-ca-global
403 file=/etc/apt/preferences.d/buildd
404 file=/etc/puppet/puppet.conf
405 file=/etc/default/puppet
406 file=/etc/default/postgrey
407 file=/etc/default/syslog-ng
408 file=/etc/logrotate.d/exim4-paniclog
409 file=/etc/logrotate.d/exim4-base
410 file=/etc/logrotate.d/syslog-ng
411 file=/etc/syslog-ng/syslog-ng.conf
412 file=/usr/sbin/dsa-update-apt-status
413 file=/usr/sbin/dsa-update-samhain-status
414 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
415 file=/etc/nagios/nrpe.d/debianorg.cfg
416 file=/etc/nagios/obsolete-packages-ignore
417 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
418 file=/etc/nagios/check-libs.conf
419 file=/usr/lib/nagios/plugins/dsa-check-packages
420 file=/usr/lib/nagios/plugins/dsa-check-soas
421 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
422 file=/usr/lib/nagios/plugins/dsa-check-samhain
423 file=/usr/lib/nagios/plugins/dsa-check-statusfile
424 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
425 file=/usr/lib/nagios/plugins/dsa-check-config
426 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
427 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
428 file=/usr/lib/nagios/plugins/dsa-check-puppet
429 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
430 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
431 file=/usr/lib/nagios/plugins/dsa-check-dabackup
432 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
433 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
434 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
435 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
436 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
437 file=/etc/sudoers
438 file=/etc/stunnel/puppet-ekeyd-peer.pem
439 file=/etc/stunnel/puppet-ekeyd.conf
440 file=/etc/pam.d/sudo
441 file=/etc/monit/monitrc
442 file=/etc/monit/monit.d/01puppet
443 file=/etc/monit/monit.d/00debian.org
444 file=/etc/cron.d/dsa-puppet-stuff
445 file=/etc/cron.weekly/stunnel-ekey-restart
446 file=/etc/default/schroot
447 file=/etc/schroot/default/nssdatabases
448 file=/etc/schroot/setup.d/99builddsourceslist
449 file=/etc/schroot/setup.d/99porterbox-extra-sources
450 file=/etc/schroot/setup.d/99porterbox-extra-apt-options
451 file=/etc/openvswitch/conf.db
452
453 <% if scope.function_has_role(['nagiosmaster']) -%>
454 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
455 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
456 file=/etc/nagios3/puppetconf.d/auto-services.cfg
457 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
458 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
459 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
460 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
461 file=/etc/nagios3/puppetconf.d/contacts.cfg
462 <% end -%>
463 <% if scope.function_has_role(['muninmaster']) -%>
464 file=/etc/munin/munin.conf
465 <% end -%>
466 <% if scope.function_has_role(['puppetmaster']) -%>
467 dir=8/etc/puppet
468 <% end -%>  
469 <% if classes.include?('named::geodns') -%>
470 dir=1/etc/bind/geodns
471 <% end -%>
472 <% if classes.include?('named::authoritative') -%>
473 dir=1/etc/bind
474 file=/etc/bind/named.conf.debian-zones
475 <% end -%>
476 dir=3/etc/lvm/archive
477 dir=3/etc/lvm/backup
478 dir=1/etc/ferm/dsa.d
479 dir=1/etc/ferm/conf.d
480 dir=3/etc/facter
481 file=/etc/ferm/conf.d/me.conf
482 file=/etc/ferm/conf.d/defs.conf
483 file=/etc/ferm/ferm.conf
484 file=/etc/ssl/README
485 dir=2/etc/ssl/debian
486 dir=1/etc/ssl/certs
487 dir=1/etc/ssl/ca-debian
488 dir=1/etc/ssl/ca-global
489 file=/etc/ca-certificates.conf
490 file=/etc/ca-certificates-debian.conf
491 file=/etc/ca-certificates-global.conf
492 file=/etc/ssl/private/ssl-cert-snakeoil.key
493 file=/etc/unbound/unbound.conf
494 <% if scope.lookupvar('::fqdn') == "draghi.debian.org" -%>
495 file=/etc/openvpn/deb-mgmt-clients.pool
496 <% end -%>
497 file=/etc/rsyncd/debian.secrets
498
499
500 <% if scope.function_has_role(['puppetmaster']) %>
501
502 # Damn you rails apps and your shoddy packaging
503 file=/usr/share/puppet-dashboard/public/stylesheets
504 file=/usr/share/puppet-dashboard/public/javascripts
505 file=/usr/share/puppet-dashboard/public/stylesheets/all.css
506 file=/usr/share/puppet-dashboard/public/javascripts/all.js
507 dir=1/usr/share/puppet-dashboard/tmp/pids
508 <% end -%>
509
510 <% if classes.include?("porterbox") %>
511 file=/etc/cron.weekly/puppet-mail-big-homedirs
512 <% end -%>
513 file=/etc/ssl/private/*.key-certchain
514 dir=10/var/lib/puppet/clientbucket
515
516 [IgnoreNone]
517 ##
518 ## for these files, all modifications (even access time) are reported
519 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
520 ##      just to watch whether someone will access it ...
521 ##
522
523 [Prelink]
524 ##
525 ## Use for prelinked files or directories holding them
526 ##
527
528
529 [ReadOnly]
530 ##
531 ## for these files, only access time is ignored
532 ##
533 dir=/usr/bin
534 dir=/bin
535 dir=/boot
536 #
537 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
538 # so we go 3 levels deep
539 #
540 dir=3/sbin
541 dir=/usr/sbin
542 dir=/lib
543 dir=3/usr/lib
544 dir=3/usr/share
545 #
546 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
547 #        so we go 3 levels deep there too
548 #
549 dir=3/etc
550
551 # Various directories / files that may include / be SUID/SGID binaries
552 #
553 #
554 file=/usr/lib/pt_chown
555 # X11, in Debian X7 this is now a symlink
556 #dir=/usr/X11R6/bin
557 #dir=/usr/X11R6/lib/X11/xmcd/bin
558 # Apache:
559 #file=/usr/lib/apache/suexec
560 #file=/usr/lib/apache/suexec.disabled
561 # Extra directories:
562 #dir=/opt/gnome/bin
563 #dir=/opt/kde/bin
564
565 [User0]
566 [User1]
567 ## User0 and User1 are sections for files/dirs with user-definable checking
568 ## (see the manual) 
569
570
571 [EventSeverity]
572 ##
573 ## Here you can assign severities to policy violations.
574 ## If this severity exceeds the treshold of a log facility (see below),
575 ## a policy violation will be logged to that facility.
576 ##
577 ## Severity for verification failures.
578 ##
579 # SeverityReadOnly=crit
580 # SeverityLogFiles=crit
581 # SeverityGrowingLogs=crit
582 # SeverityIgnoreNone=crit
583 # SeverityAttributes=crit
584 # SeverityUser0=crit
585 # SeverityUser1=crit
586
587 # Default behaviour
588 SeverityReadOnly=crit
589 SeverityLogFiles=crit
590 SeverityGrowingLogs=warn
591 SeverityIgnoreNone=crit
592 SeverityAttributes=crit
593
594
595 ##
596 ## We have a file in IgnoreAll that might or might not be present.
597 ## Setting the severity to 'info' prevents messages about deleted/new file.
598 ##
599 # SeverityIgnoreAll=crit
600 SeverityIgnoreAll=info
601
602 ## Files : file access problems
603 # SeverityFiles=crit
604
605 ## Dirs  : directory access problems
606 # SeverityDirs=crit
607
608 ## Names : suspect (non-printable) characters in a pathname
609 # SeverityNames=crit
610
611 # Default behaviour
612 SeverityFiles=crit
613 SeverityDirs=crit
614 SeverityNames=warn
615
616
617 [Log]
618 ##
619 ## Switch on/OFF log facilities and set their threshold severity
620 ##
621 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
622 ## 'mark' is used for timestamps.
623 ##
624 ##
625 ## Use 'none' to SWITCH OFF a log facility
626 ## 
627 ## By default, everything equal to and above the threshold is logged.
628 ## The specifiers '*', '!', and '=' are interpreted as  
629 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
630 ## at least on Linux). Examples:
631 ## MailSeverity=*
632 ## MailSeverity=!warn
633 ## MailSeverity==crit
634
635 ## E-mail
636 ##
637 # MailSeverity=none
638
639 ## Console
640 ##
641 # PrintSeverity=info
642
643 ## Logfile
644 ##
645 # LogSeverity=mark
646
647 ## Syslog
648 ##
649 # SyslogSeverity=none
650
651 ## Remote server (yule)
652 ##
653 # ExportSeverity=none
654
655 ## External script or program
656 ##
657 # ExternalSeverity = none
658
659 ## Logging to a database
660 ##
661 # DatabaseSeverity = none
662
663 # Default behaviour
664 MailSeverity=crit
665 PrintSeverity=none
666 LogSeverity=info
667 SyslogSeverity=alert
668 #ExportSeverity=none
669
670
671
672
673
674 #####################################################
675 #
676 # Optional modules
677 #
678 #####################################################
679
680 [SuidCheck]
681 ##
682 ## --- Check the filesystem for SUID/SGID binaries
683 ## 
684
685 ## Switch off
686 #
687 SuidCheckActive = 0
688
689 ## Interval for check (seconds)
690 #
691 # SuidCheckInterval = 7200
692
693 ## Alternative: crontab-like schedule
694 #
695 # SuidCheckSchedule = NULL
696  
697 ## Directory to exclude 
698 #
699 # SuidCheckExclude = NULL
700
701 ## Limit on files per second (0 == no limit)
702 #
703 # SuidCheckFps = 0
704
705 ## Alternative: yield after every file
706 #
707 # SuidCheckYield = no
708
709 ## Severity of a detection
710 #
711 # SeveritySuidCheck = crit
712
713 ## Quarantine SUID/SGID files if found
714 #
715 # SuidCheckQuarantineFiles = yes
716
717 ## Method for Quarantining files:
718 #  0 - Delete or truncate the file.
719 #  1 - Remove SUID/SGID permissions from file.
720 #  2 - Move SUID/SGID file to quarantine dir.
721 #
722 # SuidCheckQuarantineMethod = 0
723
724 ## For method 1 and 3, really delete instead of truncating
725
726 # SuidCheckQuarantineDelete = yes
727
728 # [Kernel]
729 ##
730 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
731 ##
732
733 ## Switch on/off
734 #
735 #KernelCheckActive = True
736
737 ## Check interval (seconds); btw., the check is VERY fast
738 #
739 # KernelCheckInterval = 300
740
741 ## Severity
742 #
743 # SeverityKernel = crit
744
745
746 # [Utmp]
747 ##
748 ## --- Logging of login/logout events
749 ##
750
751 ## Switch on/off
752 #
753 # LoginCheckActive = True
754
755 ## Severity for logins, multiple logins, logouts
756
757 # SeverityLogin=info
758 # SeverityLoginMulti=warn
759 # SeverityLogout=info
760
761 ## Interval for login/logout checks
762 #
763 # LoginCheckInterval = 300
764
765
766 # [Database]
767 ##
768 ## --- Logging to a relational database
769 ##
770
771 ## Database name
772 #
773 # SetDBName = samhain
774
775 ## Database table
776 #
777 # SetDBTable = log
778
779 ## Database user
780 #
781 # SetDBUser = samhain
782
783 ## Database password
784 #
785 # SetDBPassword = (default: none)
786
787 ## Database host
788 #
789 # SetDBHost = localhost
790
791 ## Log the server timestamp for received messages
792 #
793 # SetDBServerTstamp = True
794
795 ## Use a persistent connection
796 #
797 # UsePersistent = True
798
799 # [External]
800 ##
801 ## Interface to call external scripts/programs for logging
802 ##
803
804 ## The absolute path to the command
805 ## - Each invocation of this directive will end the definition of the
806 ##   preceding command, and start the definition of 
807 ##   an additional, new command
808 #
809 # OpenCommand = (no default)
810
811 ## Type (log or rv)
812 ## - log for log messages, srv for messages received by the server
813 #
814 # SetType = log
815
816 ## The command (full command line) to execute
817 #
818 # SetCommandLine = (no default)
819
820 ## The environment (KEY=value; repeat for more)
821 #
822 # SetEnviron = TZ=(your timezone)
823
824 ## The TIGER192 checksum (optional)
825 #
826 # SetChecksum = (no default)
827
828 ## User who runs the command
829 #
830 # SetCredentials = (default: samhain process uid)
831
832 ## Words not allowed in message
833 #
834 # SetFilterNot = (none)
835
836 ## Words required (ALL of them)
837 #
838 # SetFilterAnd = (none)
839
840 ## Words required (at least one)
841 #
842 # SetFilterOr = (none)
843
844 ## Deadtime between consecutive calls
845 #
846 # SetDeadtime = 0
847
848 ## Add default environment (HOME, PATH, SHELL)
849 #
850 # SetDefault = no
851
852 <% if scope.call_function('versioncmp', [@lsbmajdistrelease, '9']) >= 0 -%>
853 [PortCheck]
854 PortCheckActive=0
855 <% end -%>
856
857
858 #####################################################
859 #
860 # Miscellaneous configuration options
861 #
862 #####################################################
863
864 [Misc]
865
866 ## whether to become a daemon process
867 ## (this is not honoured on database initialisation)
868 #
869 # Daemon = no
870 Daemon = yes
871
872 ## whether to test signature of files (init/check/none)
873 ## - if 'none', then we have to decide this on the command line -
874 #
875 # ChecksumTest = none
876 ChecksumTest=check
877
878 ## whether to drop linux capabilities that are not required
879 ## - will make a root process a 'mere mortal' in many respects
880 #
881 # UseCaps = yes
882
883 ## Set nice level (-19 to 19, see 'man nice'),
884 ## and I/O limit (kilobytes per second; 0 == off)
885 ## to reduce load on host.
886 #
887 # SetNiceLevel = 0
888 # SetIOLimit = 0
889
890 ## The version string to embed in file signature databases
891 #
892 # VersionString = NULL
893
894 ## Interval between time stamp messages
895 #
896 # SetLoopTime = 60
897 SetLoopTime = 600
898
899 ## Interval between file checks 
900 #
901 # SetFileCheckTime = 600
902 SetFileCheckTime = 7200
903
904 ## Alternative: crontab-like schedule
905 #
906 # FileCheckScheduleOne = NULL
907
908 ## Alternative: crontab-like schedule(2)
909 #
910 # FileCheckScheduleTwo = NULL
911
912 ## Report only once on modified fles 
913 ## Setting this to 'FALSE' will generate a report for any policy 
914 ## violation (old and new ones) each time the daemon checks the file system.
915 #
916 # ReportOnlyOnce = True
917
918 ## Report in full detail
919 #
920 # ReportFullDetail = False
921
922 ## Report file timestamps in local time rather than GMT
923 #
924 # UseLocalTime = No
925
926 ## The console device (can also be a file or named pipe)
927 ## - There are two console devices. Accordingly, you can use
928 ##   this directive a second time to set the second console device.
929 ##   If you have not defined the second device at compile time,
930 ##   and you don't want to use it, then:
931 ##   setting it to /dev/null is less effective than just leaving
932 ##   it alone (setting to /dev/null will waste time by opening
933 ##   /dev/null and writing to it)
934 #
935 # SetConsole = /dev/console
936
937 ## Activate the SysV IPC message queue
938 #
939 # MessageQueueActive = False
940
941
942 ## If false, skip reverse lookup when connecting to a host known 
943 ## by name rather than IP address (i.e. trust the DNS)
944 #
945 # SetReverseLookup = True
946
947 ## --- E-Mail ---
948
949 # Only highest-level (alert) reports will be mailed immediately,
950 # others will be queued. Here you can define, when the queue will
951 # be flushed (Note: the queue is automatically flushed after
952 # completing a file check).
953 #
954 SetMailTime = 86400
955
956 ## Maximum number of mails to queue
957 #
958 SetMailNum = 10
959
960 ## Recipient (max. 8)
961 #
962 SetMailAddress=samhain-reports@<%= @fqdn -%>
963
964 SetMailRelay = localhost
965
966 ## Custom subject format
967 #
968 MailSubject = [Samhain at %H] %T: %S
969
970 ## --- end E-Mail ---
971
972 ## Path to the prelink executable
973 #
974 # SetPrelinkPath = /usr/sbin/prelink
975
976 ## TIGER192 checksum of the prelink executable
977 #
978 # SetPrelinkChecksum = (no default)
979
980
981 ## Path to the executable. If set, will be checksummed after startup
982 ## and before exit.
983 #
984 # SamhainPath = (no default)
985
986
987 ## The IP address of the log server
988 #
989 # SetLogServer = (default: compiled-in)
990
991 ## The IP address of the time server
992 #
993 # SetTimeServer = (default: compiled-in)
994
995 ## Trusted Users (comma delimited list of user names) 
996 #
997 # TrustedUser = (no default; this adds to the compiled-in list)
998
999 ## Path to the file signature database
1000 #
1001 # SetDatabasePath = (default: compiled-in)
1002
1003 ## Path to the log file
1004 #
1005 # SetLogfilePath = (default: compiled-in)
1006
1007 ## Path to the PID file
1008 #
1009 # SetLockPath = (default: compiled-in)
1010
1011
1012 ## The digest/checksum/hash algorithm
1013 #
1014 # DigestAlgo = TIGER192
1015
1016
1017 ## Custom format for message header. 
1018 ## CAREFUL if you use XML logfile format.
1019 ##
1020 ## %S severity
1021 ## %T timestamp
1022 ## %C class
1023 ##
1024 ## %F source file
1025 ## %L source line
1026 #
1027 # MessageHeader="%S %T "
1028
1029
1030 ## Don't log path to config/database file on startup
1031 #
1032 # HideSetup = False
1033
1034 ## The syslog facility, if you log to syslog
1035 #
1036 # SyslogFacility = LOG_AUTHPRIV
1037 SyslogFacility=LOG_LOCAL2
1038
1039 ## The message authentication method
1040 ## - If you change this, you *must* change it
1041 ##   on client *and* server
1042 #
1043 # MACType = HMAC-TIGER
1044
1045
1046 ## everything below is ignored
1047 [EOF]
1048
1049 #####################################################################
1050 # This would be the proper syntax for parts that should only be
1051 #    included for certain hosts.
1052 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
1053 #    result still has the proper syntax for the config file.
1054 # You may have any number of @HOSTNAME/@end brackets.
1055 # HOSTNAME should be the fully qualified 'official' name 
1056 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
1057 #    No IP number - except if samhain cannot determine the 
1058 #    fully qualified hostname.
1059 #
1060 # @HOSTNAME
1061 # file=/foo/bar
1062 # @end
1063 #
1064 # These are two examples for conditional inclusion/exclusion
1065 # of a machine based on the output from 'uname -srm'
1066 # $Linux:2.*.7:i666
1067 # file=/foo/bar3
1068 # $end
1069 #
1070 # !$Linux:2.*.7:i686
1071 # file=/foo/bar2
1072 # $end
1073 #
1074 #####################################################################