21.8.5 Inherit Execute Mode (ix)
ix
prevents the normal AppArmor domain transition on
execve(2)
when the profiled
program executes the named program. Instead, the executed resource inherits the current
profile.
This mode is useful when a confined program needs to call another confined program
without gaining the permissions of the target's profile or losing the permissions of the
current profile. There is no version to scrub the environment because
ix
executions do
not change privileges.
Incompatible with
cx
,
ux
, and
px
. Implies
m
.
21.8.6 Allow Executable Mapping (m)
This mode allows a file to be mapped into memory using
mmap(2)
's
PROT_EXEC
flag. This flag marks the pages executable. It is used on some architectures to provide
non executable data pages, which can complicate exploit attempts. AppArmor uses this
mode to limit which files a well-behaved program (or all programs on architectures
that enforce non executable memory access controls) may use as libraries, to limit the
effect of invalid
-L
flags given to
ld(1)
and
LD_PRELOAD
,
LD_LIBRARY_PATH
,
given to
ld.so(8)
.
21.8.7 Named Profile Transitions
By default the
px
and
cx
(and their clean exec variants, too) transition to a profile
who's name matches the executable name. With named profile transitions, you can
specify a profile to be transitioned to. This is useful if multiple binaries should share a
single profile, or if they should use a different profile than their name would specify.
Named profile transitions can be used in conjunction with
cx
,
Cx
,
px
and
Px
. Currently
there is a limit of twelve named profile transitions per profile.
Named profile transitions use
->
to indicate the name of the profile that should be
transitioned to:
/usr/bin/foo
{
/bin/** px -> shared_profile,
254
Security Guide
Содержание 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: ......