samhain ignore /etc/dupload.conf on buildds
[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 <% 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/rc.local
153
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 <% case hoster when "ubcece", "darmstadt", "ftcollins", "grnet" then -%>
216 file=/etc/resolv.conf
217 <% end -%>
218 <% if nodeinfo['buildd'] -%>
219 file=/etc/dupload.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/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 <% end -%>
376 <% if nodeinfo['muninmaster'] -%>
377 file=/etc/munin/munin.conf
378 <% end -%>
379 <% if nodeinfo['puppetmaster'] -%>
380 dir=8/etc/puppet
381 <% end -%>  
382 <% if classes.include?('named::geodns') -%>
383 dir=1/etc/bind/geodns
384 <% end -%>
385 <% if classes.include?('named::authoritative') -%>
386 dir=1/etc/bind
387 file=/etc/bind/named.conf.debian-zones
388 <% end -%>
389 <% if fqdn == "dijkstra.debian.org" -%>
390 dir=4/etc/dsa-kvm
391 <% end -%>
392
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
402 [IgnoreNone]
403 ##
404 ## for these files, all modifications (even access time) are reported
405 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
406 ##      just to watch whether someone will access it ...
407 ##
408
409 [Prelink]
410 ##
411 ## Use for prelinked files or directories holding them
412 ##
413
414
415 [ReadOnly]
416 ##
417 ## for these files, only access time is ignored
418 ##
419 dir=/usr/bin
420 dir=/bin
421 dir=/boot
422 #
423 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
424 # so we go 3 levels deep
425 #
426 dir=3/sbin
427 dir=/usr/sbin
428 dir=/lib
429 dir=3/usr/lib
430 #
431 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
432 #        so we go 3 levels deep there too
433 #
434 dir=3/etc
435
436 # Various directories / files that may include / be SUID/SGID binaries
437 #
438 #
439 file=/usr/lib/pt_chown
440 # X11, in Debian X7 this is now a symlink
441 #dir=/usr/X11R6/bin
442 #dir=/usr/X11R6/lib/X11/xmcd/bin
443 # Apache:
444 #file=/usr/lib/apache/suexec
445 #file=/usr/lib/apache/suexec.disabled
446 # Extra directories:
447 #dir=/opt/gnome/bin
448 #dir=/opt/kde/bin
449
450 [User0]
451 [User1]
452 ## User0 and User1 are sections for files/dirs with user-definable checking
453 ## (see the manual) 
454
455
456 [EventSeverity]
457 ##
458 ## Here you can assign severities to policy violations.
459 ## If this severity exceeds the treshold of a log facility (see below),
460 ## a policy violation will be logged to that facility.
461 ##
462 ## Severity for verification failures.
463 ##
464 # SeverityReadOnly=crit
465 # SeverityLogFiles=crit
466 # SeverityGrowingLogs=crit
467 # SeverityIgnoreNone=crit
468 # SeverityAttributes=crit
469 # SeverityUser0=crit
470 # SeverityUser1=crit
471
472 # Default behaviour
473 SeverityReadOnly=crit
474 SeverityLogFiles=crit
475 SeverityGrowingLogs=warn
476 SeverityIgnoreNone=crit
477 SeverityAttributes=crit
478
479
480 ##
481 ## We have a file in IgnoreAll that might or might not be present.
482 ## Setting the severity to 'info' prevents messages about deleted/new file.
483 ##
484 # SeverityIgnoreAll=crit
485 SeverityIgnoreAll=info
486
487 ## Files : file access problems
488 # SeverityFiles=crit
489
490 ## Dirs  : directory access problems
491 # SeverityDirs=crit
492
493 ## Names : suspect (non-printable) characters in a pathname
494 # SeverityNames=crit
495
496 # Default behaviour
497 SeverityFiles=crit
498 SeverityDirs=crit
499 SeverityNames=warn
500
501
502 [Log]
503 ##
504 ## Switch on/OFF log facilities and set their threshold severity
505 ##
506 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
507 ## 'mark' is used for timestamps.
508 ##
509 ##
510 ## Use 'none' to SWITCH OFF a log facility
511 ## 
512 ## By default, everything equal to and above the threshold is logged.
513 ## The specifiers '*', '!', and '=' are interpreted as  
514 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
515 ## at least on Linux). Examples:
516 ## MailSeverity=*
517 ## MailSeverity=!warn
518 ## MailSeverity==crit
519
520 ## E-mail
521 ##
522 # MailSeverity=none
523
524 ## Console
525 ##
526 # PrintSeverity=info
527
528 ## Logfile
529 ##
530 # LogSeverity=mark
531
532 ## Syslog
533 ##
534 # SyslogSeverity=none
535
536 ## Remote server (yule)
537 ##
538 # ExportSeverity=none
539
540 ## External script or program
541 ##
542 # ExternalSeverity = none
543
544 ## Logging to a database
545 ##
546 # DatabaseSeverity = none
547
548 # Default behaviour
549 MailSeverity=crit
550 PrintSeverity=none
551 LogSeverity=info
552 SyslogSeverity=alert
553 #ExportSeverity=none
554
555
556
557
558
559 #####################################################
560 #
561 # Optional modules
562 #
563 #####################################################
564
565 # [SuidCheck]
566 ##
567 ## --- Check the filesystem for SUID/SGID binaries
568 ## 
569
570 ## Switch on
571 #
572 # SuidCheckActive = yes
573
574 ## Interval for check (seconds)
575 #
576 # SuidCheckInterval = 7200
577
578 ## Alternative: crontab-like schedule
579 #
580 # SuidCheckSchedule = NULL
581  
582 ## Directory to exclude 
583 #
584 # SuidCheckExclude = NULL
585
586 ## Limit on files per second (0 == no limit)
587 #
588 # SuidCheckFps = 0
589
590 ## Alternative: yield after every file
591 #
592 # SuidCheckYield = no
593
594 ## Severity of a detection
595 #
596 # SeveritySuidCheck = crit
597
598 ## Quarantine SUID/SGID files if found
599 #
600 # SuidCheckQuarantineFiles = yes
601
602 ## Method for Quarantining files:
603 #  0 - Delete or truncate the file.
604 #  1 - Remove SUID/SGID permissions from file.
605 #  2 - Move SUID/SGID file to quarantine dir.
606 #
607 # SuidCheckQuarantineMethod = 0
608
609 ## For method 1 and 3, really delete instead of truncating
610
611 # SuidCheckQuarantineDelete = yes
612
613 # [Kernel]
614 ##
615 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
616 ##
617
618 ## Switch on/off
619 #
620 #KernelCheckActive = True
621
622 ## Check interval (seconds); btw., the check is VERY fast
623 #
624 # KernelCheckInterval = 300
625
626 ## Severity
627 #
628 # SeverityKernel = crit
629
630
631 # [Utmp]
632 ##
633 ## --- Logging of login/logout events
634 ##
635
636 ## Switch on/off
637 #
638 # LoginCheckActive = True
639
640 ## Severity for logins, multiple logins, logouts
641
642 # SeverityLogin=info
643 # SeverityLoginMulti=warn
644 # SeverityLogout=info
645
646 ## Interval for login/logout checks
647 #
648 # LoginCheckInterval = 300
649
650
651 # [Database]
652 ##
653 ## --- Logging to a relational database
654 ##
655
656 ## Database name
657 #
658 # SetDBName = samhain
659
660 ## Database table
661 #
662 # SetDBTable = log
663
664 ## Database user
665 #
666 # SetDBUser = samhain
667
668 ## Database password
669 #
670 # SetDBPassword = (default: none)
671
672 ## Database host
673 #
674 # SetDBHost = localhost
675
676 ## Log the server timestamp for received messages
677 #
678 # SetDBServerTstamp = True
679
680 ## Use a persistent connection
681 #
682 # UsePersistent = True
683
684 # [External]
685 ##
686 ## Interface to call external scripts/programs for logging
687 ##
688
689 ## The absolute path to the command
690 ## - Each invocation of this directive will end the definition of the
691 ##   preceding command, and start the definition of 
692 ##   an additional, new command
693 #
694 # OpenCommand = (no default)
695
696 ## Type (log or rv)
697 ## - log for log messages, srv for messages received by the server
698 #
699 # SetType = log
700
701 ## The command (full command line) to execute
702 #
703 # SetCommandLine = (no default)
704
705 ## The environment (KEY=value; repeat for more)
706 #
707 # SetEnviron = TZ=(your timezone)
708
709 ## The TIGER192 checksum (optional)
710 #
711 # SetChecksum = (no default)
712
713 ## User who runs the command
714 #
715 # SetCredentials = (default: samhain process uid)
716
717 ## Words not allowed in message
718 #
719 # SetFilterNot = (none)
720
721 ## Words required (ALL of them)
722 #
723 # SetFilterAnd = (none)
724
725 ## Words required (at least one)
726 #
727 # SetFilterOr = (none)
728
729 ## Deadtime between consecutive calls
730 #
731 # SetDeadtime = 0
732
733 ## Add default environment (HOME, PATH, SHELL)
734 #
735 # SetDefault = no
736
737
738 #####################################################
739 #
740 # Miscellaneous configuration options
741 #
742 #####################################################
743
744 [Misc]
745
746 ## whether to become a daemon process
747 ## (this is not honoured on database initialisation)
748 #
749 # Daemon = no
750 Daemon = yes
751
752 ## whether to test signature of files (init/check/none)
753 ## - if 'none', then we have to decide this on the command line -
754 #
755 # ChecksumTest = none
756 ChecksumTest=check
757
758 ## whether to drop linux capabilities that are not required
759 ## - will make a root process a 'mere mortal' in many respects
760 #
761 # UseCaps = yes
762
763 ## Set nice level (-19 to 19, see 'man nice'),
764 ## and I/O limit (kilobytes per second; 0 == off)
765 ## to reduce load on host.
766 #
767 # SetNiceLevel = 0
768 # SetIOLimit = 0
769
770 ## The version string to embed in file signature databases
771 #
772 # VersionString = NULL
773
774 ## Interval between time stamp messages
775 #
776 # SetLoopTime = 60
777 SetLoopTime = 600
778
779 ## Interval between file checks 
780 #
781 # SetFileCheckTime = 600
782 SetFileCheckTime = 7200
783
784 ## Alternative: crontab-like schedule
785 #
786 # FileCheckScheduleOne = NULL
787
788 ## Alternative: crontab-like schedule(2)
789 #
790 # FileCheckScheduleTwo = NULL
791
792 ## Report only once on modified fles 
793 ## Setting this to 'FALSE' will generate a report for any policy 
794 ## violation (old and new ones) each time the daemon checks the file system.
795 #
796 # ReportOnlyOnce = True
797
798 ## Report in full detail
799 #
800 # ReportFullDetail = False
801
802 ## Report file timestamps in local time rather than GMT
803 #
804 # UseLocalTime = No
805
806 ## The console device (can also be a file or named pipe)
807 ## - There are two console devices. Accordingly, you can use
808 ##   this directive a second time to set the second console device.
809 ##   If you have not defined the second device at compile time,
810 ##   and you don't want to use it, then:
811 ##   setting it to /dev/null is less effective than just leaving
812 ##   it alone (setting to /dev/null will waste time by opening
813 ##   /dev/null and writing to it)
814 #
815 # SetConsole = /dev/console
816
817 ## Activate the SysV IPC message queue
818 #
819 # MessageQueueActive = False
820
821
822 ## If false, skip reverse lookup when connecting to a host known 
823 ## by name rather than IP address (i.e. trust the DNS)
824 #
825 # SetReverseLookup = True
826
827 ## --- E-Mail ---
828
829 # Only highest-level (alert) reports will be mailed immediately,
830 # others will be queued. Here you can define, when the queue will
831 # be flushed (Note: the queue is automatically flushed after
832 # completing a file check).
833 #
834 SetMailTime = 86400
835
836 ## Maximum number of mails to queue
837 #
838 SetMailNum = 10
839
840 ## Recipient (max. 8)
841 #
842 SetMailAddress=samhain-reports@debian.org
843
844 ## Mail relay (IP address)
845 <% if nodeinfo['smarthost'].empty? -%>
846 SetMailRelay = master.debian.org
847 <% else -%>
848 SetMailRelay = localhost
849 <% end -%>
850
851 ## Custom subject format
852 #
853 MailSubject = [Samhain at %H] %T: %S
854
855 ## --- end E-Mail ---
856
857 ## Path to the prelink executable
858 #
859 # SetPrelinkPath = /usr/sbin/prelink
860
861 ## TIGER192 checksum of the prelink executable
862 #
863 # SetPrelinkChecksum = (no default)
864
865
866 ## Path to the executable. If set, will be checksummed after startup
867 ## and before exit.
868 #
869 # SamhainPath = (no default)
870
871
872 ## The IP address of the log server
873 #
874 # SetLogServer = (default: compiled-in)
875
876 ## The IP address of the time server
877 #
878 # SetTimeServer = (default: compiled-in)
879
880 ## Trusted Users (comma delimited list of user names) 
881 #
882 # TrustedUser = (no default; this adds to the compiled-in list)
883
884 ## Path to the file signature database
885 #
886 # SetDatabasePath = (default: compiled-in)
887
888 ## Path to the log file
889 #
890 # SetLogfilePath = (default: compiled-in)
891
892 ## Path to the PID file
893 #
894 # SetLockPath = (default: compiled-in)
895
896
897 ## The digest/checksum/hash algorithm
898 #
899 # DigestAlgo = TIGER192
900
901
902 ## Custom format for message header. 
903 ## CAREFUL if you use XML logfile format.
904 ##
905 ## %S severity
906 ## %T timestamp
907 ## %C class
908 ##
909 ## %F source file
910 ## %L source line
911 #
912 # MessageHeader="%S %T "
913
914
915 ## Don't log path to config/database file on startup
916 #
917 # HideSetup = False
918
919 ## The syslog facility, if you log to syslog
920 #
921 # SyslogFacility = LOG_AUTHPRIV
922 SyslogFacility=LOG_LOCAL2
923
924 ## The message authentication method
925 ## - If you change this, you *must* change it
926 ##   on client *and* server
927 #
928 # MACType = HMAC-TIGER
929
930
931 ## everything below is ignored
932 [EOF]
933
934 #####################################################################
935 # This would be the proper syntax for parts that should only be
936 #    included for certain hosts.
937 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
938 #    result still has the proper syntax for the config file.
939 # You may have any number of @HOSTNAME/@end brackets.
940 # HOSTNAME should be the fully qualified 'official' name 
941 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
942 #    No IP number - except if samhain cannot determine the 
943 #    fully qualified hostname.
944 #
945 # @HOSTNAME
946 # file=/foo/bar
947 # @end
948 #
949 # These are two examples for conditional inclusion/exclusion
950 # of a machine based on the output from 'uname -srm'
951 # $Linux:2.*.7:i666
952 # file=/foo/bar3
953 # $end
954 #
955 # !$Linux:2.*.7:i686
956 # file=/foo/bar2
957 # $end
958 #
959 #####################################################################