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