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