From ee8300545e3a6fc9f8f691c1b27b22a39ec4926c Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Fri, 24 Jan 2025 16:03:20 -0800 Subject: [PATCH] Write a man page for aa-load based on the help text Signed-off-by: Ryan Lee --- .gitignore | 1 + binutils/Makefile | 2 +- binutils/aa-load.pod | 77 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 binutils/aa-load.pod diff --git a/.gitignore b/.gitignore index 13f1d2f89..d8f0725cf 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ binutils/aa-exec.1 binutils/aa-features-abi binutils/aa-features-abi.1 binutils/aa-load +binutils/aa-load.8 binutils/aa-status binutils/aa-status.8 binutils/cJSON.o diff --git a/binutils/Makefile b/binutils/Makefile index d041d708a..f97bd6a2b 100644 --- a/binutils/Makefile +++ b/binutils/Makefile @@ -21,7 +21,7 @@ DESTDIR=/ BINDIR=${DESTDIR}/usr/bin SBINDIR=${DESTDIR}/usr/sbin LOCALEDIR=/usr/share/locale -MANPAGES=aa-enabled.1 aa-exec.1 aa-features-abi.1 aa-status.8 +MANPAGES=aa-enabled.1 aa-exec.1 aa-features-abi.1 aa-load.8 aa-status.8 WARNINGS = -Wall CPP_WARNINGS = diff --git a/binutils/aa-load.pod b/binutils/aa-load.pod new file mode 100644 index 000000000..098dcb9aa --- /dev/null +++ b/binutils/aa-load.pod @@ -0,0 +1,77 @@ +# This publication is intellectual property of Canonical Ltd. Its contents +# can be duplicated, either in part or in whole, provided that a copyright +# label is visibly located on each copy. +# +# All information found in this book has been compiled with utmost +# attention to detail. However, this does not guarantee complete accuracy. +# Neither Canonical Ltd, the authors, nor the translators shall be held +# liable for possible errors or the consequences thereof. +# +# Many of the software and hardware descriptions cited in this book +# are registered trademarks. All trade names are subject to copyright +# restrictions and may be registered trade marks. Canonical Ltd +# essentially adheres to the manufacturer's spelling. +# +# Names of products and trademarks appearing in this book (with or without +# specific notation) are likewise subject to trademark and trade protection +# laws and may thus fall under copyright restrictions. +# + + +=pod + +=head1 NAME + +aa-load - load precompiled AppArmor policy from cache location(s) + +=head1 SYNOPSIS + +B [options] (cache file|cache dir|cache base dir)+ + +=head1 DESCRIPTION + +B loads precompiled AppArmor policy from the specified locations. + +=head1 OPTIONS + +B accepts the following arguments: + +=over 4 + +=item -f, --force + +Force B to load a policy even if its abi does not match the kernel abi. + +=item -d, --debug + +Display debug messages. + +=item -v, --verbose + +Display progress and error messages. + +=item -n, --dry-run + +Do not actually load the specified policy/policies into the kernel. + +=item -h, --help + +Display a brief usage guide. + +=back + +=head1 EXIT STATUS + +Upon exiting, B returns 0 upon success and 1 upon an error loading +the precompiled policy. + +=head1 BUGS + +If you find any bugs, please report them at +L. + +=head1 SEE ALSO + +apparmor(7), apparmor.d(5), apparmor_parser(8), and L. + +=cut