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
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: ......