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