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