-a, --add | Add apparmor definitions [default] | help |
-r, --replace | Replace apparmor definitions | help |
-R, --remove | Remove apparmor definitions | help |
-C, --Complain | Force the profile to load in complain mode. | help + man |
-B, --binary | Treat the profile files specified on the command line (or stdin if none specified) as binary cache files, produced with the -S or -o options, and load to the kernel as specified by -a, -r, and -R… | help + man |
-N, --names | Dump names of profiles in input. | help |
-S, --stdout | Dump compiled profile to stdout | help |
-o, --ofile n | Write output to file n | help |
-b, --base n | Set the base directory for resolving #include directives defined as relative paths. | help + man |
-I, --Include n | Add element n to the search path when resolving #include directives defined as an absolute paths. | help + man |
-f, --subdomainfs, --apparmorfs n | Set the location of the apparmor security filesystem (default is "/sys/kernel/security/apparmor"). | help + man |
-m, --match-string n | Only use match features "n". | help + man |
--policy-features n | Specify the feature set that the policy was developed under. | help + man |
--override-policy-abi n | Specify the feature set that the policy was developed under and override any feature ABI rules that the policy may be using. | help + man |
--kernel-features n | Specify the feature set of the kernel that the policy is being compiled for. | help + man |
-n, --namespace, --namespace-string n | Force a profile to load in the namespace "n". | help + man |
-X, --readimpliesX | In the case of profiles that are loading on systems were READ_IMPLIES_EXEC is set in the kernel for a given process, load the profile so that any "r" flags are processed as "mr". | help + man |
-k, --show-cache | Report the cache processing (hit/miss details) when loading or saving cached profiles. | help + man |
-K, --skip-cache | Perform no caching at all: disables -W, implies -T. | help + man |
-T, --skip-read-cache | By default, if a profile's cache is found in the location specified by --cache-loc and the timestamp is newer than the profile, it will be loaded from the cache. | help + man |
-W, --write-cache | Write out cached profiles to the location specified in --cache-loc. | help + man |
--skip-bad-cache | Skip updating the cache if it contains cached profiles in a bad or inconsistent state | help + man |
--purge-cache | Clear cache regardless of its state | help |
--debug-cache | Debug cache file checks | help |
--print-cache-dir | Print the cache directory location. | help + man |
-L, --cache-loc n | Set the location(s) of the cache directory. | help + man |
-q, --quiet | Do not report on the profiles as they are loaded, and not show warnings. | help + man |
-v, --verbose | Report on the profiles as they are loaded, and show warnings. | help + man |
-Q, --skip-kernel-load | Perform all actions except the actual loading of a profile into the kernel. | help + man |
-V, --version | Display version info and exit | help |
-d, --debug n | Given once, only checks the profiles to ensure syntactic correctness. | help + man |
-p, --preprocess | Dump preprocessed profile | help |
-D, --dump n | Debug flag for dumping various structures and passes of policy compilation. | help + man |
-O, --Optimize, --optimize n | Set the optimization flags used by policy compilation. | help + man |
-h, --help cmd | Display this text or info about cmd | help |
-j, --jobs n | Set the number of jobs used to compile the specified policy. | help + man |
-c, --zstd-compress-level n | Compress profile at level n n can be: none, default, fast, small, or 0-22 (0 disables compression, default: 10) | help |
--max-jobs n | When --jobs is set to a scaling value (ie. | help + man |
--abort-on-error | Abort processing of profiles on first error | help |
--config-file n | Specify the parser config file location, processed early before other options. | help + man |
--print-config | Print config file location | help |
--warn n | Enable various warnings during policy compilation. | help + man |
--Werror n | Convert warnings to errors. | help |
-M, --features-file n | Use the features file located at path "n" (default is /etc/apparmor.d/cache/.features). (in the manual page but not in --help) | man |
--print-config-file | Print the config file location that will be used. (in the manual page but not in --help) | man |