Skip to contentSkip to conversation

setools-cmdline patch

PATCH Daniel J Walsh 1 participant 1 message Nov 17, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch cleans up some missing commandline options from seinfo, sediff and seaudit-report

sediff actually had options listed in its getopt that did not exist. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkzkSMYACgkQrlYvE4MpobNEbwCfXB6Fkgc9rXd4rY4v5NTIWFdo Df4AoIIw4upJNkWxso0zQ/oGBIwd4W2Q
=VEGb
-----END PGP SIGNATURE-----

man/seinfo.1 renamed from man/seinfo.1.cmdline +5 -1
diff -up setools-3.3.7/man/seinfo.1.cmdline setools-3.3.7/man/seinfo.1
@@ -76,6 +76,10 @@ There is no expanded information for thi
 .IP "--nodecon[=ADDR]"
 Print a list of node contexts or, if ADDR is provided, print the statement for the node with address ADDR.
 There is no expanded information for this component.
+.IP "--polcap"
+Print policy capabilities.
+.IP "--permissive"
+Print permissive types.
 .IP "--portcon[=PORT]"
 Print a list of port contexts or, if PORT is provided, print the statement for port PORT.
 There is no expanded information for this component.
@@ -93,7 +97,7 @@ These details include the types assigned
 This option is not available for all component types; see the description of each component for the details this option will provide.
 .IP "--stats"
 Print policy statistics including policy type and version information and counts of all components and rules.
-.IP "-l"
+.IP "-l, --line-breaks"
 Print line breaks when displaying constraint statements.
 .IP "-h, --help"
 Print help information and exit.
seaudit/seaudit-report.c renamed from seaudit/seaudit-report.c.cmdline +1 -1
diff -up setools-3.3.7/seaudit/seaudit-report.c.cmdline setools-3.3.7/seaudit/seaudit-report.c
@@ -100,7 +100,7 @@ static void seaudit_report_info_usage(co
 	printf("  -s, --stdin              read log data from standard input\n");
 	printf("  -m, --malformed          include malformed log messages\n");
 	printf("  -o FILE, --output=FILE   output to FILE\n");
-	printf("  --config=FILE            read configuration from FILE\n");
+	printf("  -c FILE, --config=FILE   read configuration from FILE\n");
 	printf("  --html                   set output format to HTML\n");
 	printf("  --stylesheet=FILE        HTML style sheet for formatting HTML report\n");
 	printf("                           (ignored if --html is not given)\n");
sediff/sediff.c renamed from sediff/sediff.c.cmdline +1 -1
diff -up setools-3.3.7/sediff/sediff.c.cmdline setools-3.3.7/sediff/sediff.c
@@ -420,7 +420,7 @@ int main(int argc, char **argv)
 	poldiff_t *diff = NULL;
 	size_t total = 0;
 
-	while ((optc = getopt_long(argc, argv, "ctarubANDLMCRqhV", longopts, NULL)) != -1) {
+	while ((optc = getopt_long(argc, argv, "ctarubAqhV", longopts, NULL)) != -1) {
 		switch (optc) {
 		case 0:
 			break;