
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
Содержание 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: ......