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