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