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