
As you need system call auditing capabilities even when you are configuring plain file
or directory watches, you need to enable audit contexts for system calls. To enable audit
contexts for the duration of the current session only, execute
auditctl -e 1
as
root
. To disable this feature, execute
auditctl -e 0
as
root
.
To enable audit contexts for system calls permanently, open the
/etc/sysconfig/
auditd
configuration file as
root
and set
AUDITD_DISABLE_CONTEXTS
to
no
.
Then restart the audit daemon with the
rcauditd restart
command. To turn this
feature off temporarily, use
auditctl -e 0
. To turn it off permanently, set
AUDITD_DISABLE_CONTEXTS
to
yes
.
31.4 Setting Up Audit Rules
Using audit rules, determine which aspects of the system should be analyzed by audit.
Normally this includes important databases and security-relevant configuration files.
You may also analyze various system calls in detail if a broad analysis of your system
is required. A very detailed example configuration that includes most of the rules that
are needed in a CAPP compliant environment is available in
Chapter 32, Introducing
an Audit Rule Set
(page 423).
Audit rules can be passed to the audit daemon on the
auditctl
command line as well
as by composing a rule set in
/etc/audit/audit.rules
which is processed
whenever the audit daemon is started. To customize
/etc/audit/audit.rules
either edit it directly, or use YaST: Security and Users > Linux Audit Framework (LAF)
> Rules for 'auditctl'. Rules passed on the commandline are not persistent and have to
be re-entered when the audit daemon is restarted.
A simple rule set for very basic auditing on a few important files and directories could
look like this:
# basic audit system parameters
-D
-b 8192
-f 1
-e 1
# some file and directory watches with keys
-w /var/log/audit/ -k LOG_audit
-w /etc/audit/auditd.conf -k CFG_audit_conf -p rxwa
-w /etc/audit.rules -k CFG_audit_rules -p rxwa
Setting Up the Linux Audit Framework
415
Summary of Contents for LINUX ENTERPRISE DESKTOP 11
Page 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Page 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Page 10: ......
Page 29: ...Part I Authentication...
Page 30: ......
Page 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Page 126: ......
Page 127: ...Part II Local Security...
Page 128: ......
Page 158: ......
Page 173: ...Part III Network Security...
Page 174: ......
Page 194: ......
Page 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Page 210: ......
Page 228: ......
Page 229: ...Part IV Confining Privileges with Novell AppArmor...
Page 230: ......
Page 274: ......
Page 300: ......
Page 328: ......
Page 340: ......
Page 342: ......
Page 386: ......
Page 387: ...Part V The Linux Audit Framework...
Page 388: ......