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