LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aa-cleanprof

Clean AppArmor profiles by removing redundant rules

TLDR

Strip redundant rules from a profile
$ sudo aa-cleanprof [profile_name]
copy
Clean several profiles in one run
$ sudo aa-cleanprof [profile1] [profile2]
copy
Work on profiles kept outside the system directory
$ sudo aa-cleanprof --dir [path/to/profiles] [profile_name]
copy
Skip the confirmation prompts
$ sudo aa-cleanprof --silent [profile_name]
copy
Leave the running policy untouched, so the change applies on the next reload
$ sudo aa-cleanprof --no-reload [profile_name]
copy

SYNOPSIS

aa-cleanprof executable [executable ...] [-d /path/to/profiles] [--no-reload] [-s]

DESCRIPTION

aa-cleanprof removes superfluous rules from AppArmor security profiles, including rules that are already covered by an include directive or another rule. The utility also reorders rules to group similar ones together and removes all comments from the profile file.

PARAMETERS

-d, --dir /path/to/profiles

Specifies the directory containing AppArmor profiles; defaults to /etc/apparmor.d
--no-reload
Prevents the profile from being reloaded after modifications
-s, --silent
Automatically overwrites the profile without prompting the user
-h, --help
Display help information

INSTALL

sudo apk add apparmor-utils
copy
sudo zypper install apparmor-utils
copy
nix profile install nixpkgs#apparmor-utils
copy

CAVEATS

This utility removes all comments from profile files, which may eliminate useful documentation or notes within the profiles.

HISTORY

Part of the AppArmor utilities package for managing application security profiles on Linux systems.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid