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