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