Run a program with a specified AppArmor profile, can spawn a shell when used with sudo or SUID.
aa-exec {profile} 📎 profile aa-exec {profile} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell security.execution.command | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
profile | string | No | - | AppArmor profile to use | -p, --profile |
Inputs
security.apparmor.profile AppArmor profile to execute under
Outputs
process.output Shell or command output
process_spawn Produces
process.outputConsumes
security.apparmor.profile| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Spawn an interactive shell under AppArmor confinement
aa-exec /bin/sh Run a command under a specific AppArmor profile
aa-exec -p /usr/bin/ping aa-exec runs a program with a specified AppArmor profile. When installed with SUID or available via sudo, it can be used to spawn a shell.
# Spawn interactive shell
aa-exec /bin/sh