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