
Audit control can be combined with owner conditional file rules to provide auditing
when a user access files they own (at the moment it is not possible to audit files they
don't own):
audit owner /home/*/.ssh/**
rw,
21.11 Setting Capabilities per Profile
Normally AppArmor only restricts existing native Linux controls and does not grant
additional privileges. Therefore, a program having been granted write access to a file
via it's profile, would not be able to actually write to this file if the mode bits would be
set to read only.
The only exception from this strict rule is the
set capability
rule. This provides
the ability to give non-root users administrative privileges, as defined in the
capabilities(7)
man page. Contrary to setting a program to setuid or using file
system capabilities, that apply to single programs only, the set capability rule allows
to apply capabilities to multiple programs running under a specific profile (by using ix
transitions). For security reasons, set capability rules will not be inherited, so once a
program leaves the profile, it looses the elevated privilege.
WARNING: Use set capabilities Rules with Extreme Caution
Using the set capabilities rules allows to give processes
root
privileges.
Therefore these rules should be used with extreme caution and only in excep-
tional cases.
To set a capability in a profile the keyword “set” is prepended to a capability rule. Setting
a capability also implicitly adds a capability rule allowing that capability.
set capabilty cap_chown,
NOTE
Currently the tools can not be used to add rlimit rules to profiles. The only way
to add rlimit controls to a profile is manually edit the profile with a text editor.
The tools will still work with profiles containing rlimit rules and will not remove
them, so it is safe to use the tools to update profiles containing them.
Profile Components and Syntax
259
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: ......