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