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