← 返回命令列表

Linux command

aa-disable 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Disable

sudo aa-disable [path/to/profile]

Example

sudo aa-disable [path/to/profile1] [path/to/profile2]

Example

sudo aa-disable --dir [path/to/profiles]

说明

aa-disable is used to disable one or more AppArmor profiles. This command will unload the profile from the kernel and prevent the profile from being loaded on AppArmor startup. Disabled profiles remain in /etc/apparmor.d but are not active. Use aa-enforce to re-enable a disabled profile.

参数

-d, --dir /path/to/profiles
Specifies the directory containing AppArmor profiles; defaults to /etc/apparmor.d
--no-reload
Do not unreload the profile after modifying it

FAQ

What is the aa-disable command used for?

aa-disable is used to disable one or more AppArmor profiles. This command will unload the profile from the kernel and prevent the profile from being loaded on AppArmor startup. Disabled profiles remain in /etc/apparmor.d but are not active. Use aa-enforce to re-enable a disabled profile.

How do I run a basic aa-disable example?

Run `sudo aa-disable [path/to/profile]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --dir /path/to/profiles do in aa-disable?

Specifies the directory containing AppArmor profiles; defaults to /etc/apparmor.d