[apparmor] [Patch] - Add new output file option -o

John Johansen john.johansen at canonical.com
Sat Jun 26 11:19:06 BST 2010


On 06/25/2010 10:29 PM, Kees Cook wrote:
> On Fri, Jun 25, 2010 at 10:10:56PM -0700, John Johansen wrote:
>> Add the -o flag to allow specifying the output file instead of loading
>> to the kernel.
> 
> This and the -p look fine, but we should update the POD while we're at it
> to keep the command line options in sync.
> 
Right you are will these do for entries

Index: b/parser/apparmor_parser.pod
===================================================================
--- a/parser/apparmor_parser.pod
+++ b/parser/apparmor_parser.pod
@@ -149,6 +149,11 @@
 
 Print the version number and exit.
 
+=item -p, --preprocess
+
+Dump the input profile to stdout out applying preprocessing flattening
+includes into the output profile.
+
 =item -d, --debug
 
 Given once, only checks the profiles to ensure syntactic correctness.




Index: b/parser/apparmor_parser.pod
===================================================================
--- a/parser/apparmor_parser.pod
+++ b/parser/apparmor_parser.pod
@@ -80,6 +80,10 @@
 
 Writes a binary (cached) profile to stdout (implies -K and -T).
 
+=item -o file, --ofile file
+
+Writes a binary (cached) profile to the specified file (implies -K and -T)
+
 =item -b n, --base n
 
 Set the base directory for resolving #include directives





More information about the AppArmor mailing list