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