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