
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
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......