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