policycoreutils: semodule: Add -N qualifier to no reload kernel policy

This makes semodule consistent with other commands to no reload the
policy into the kernel after the given change.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2012-05-08 16:31:33 -04:00 committed by Eric Paris
parent 413b4933ee
commit 7ae7858a6b
2 changed files with 6 additions and 3 deletions

View File

@ -53,7 +53,7 @@ display list of installed modules (other than base)
.B \-s,\-\-store
name of the store to operate on
.TP
.B \-n,\-\-noreload
.B \-n,\-\-noreload,\-N
do not reload policy after commit
.TP
.B \-h,\-\-help

View File

@ -114,7 +114,7 @@ static void usage(char *progname)
(" -l,--list-modules display list of installed modules\n");
printf("Other options:\n");
printf(" -s,--store name of the store to operate on\n");
printf(" -n,--noreload do not reload policy after commit\n");
printf(" -N,-n,--noreload do not reload policy after commit\n");
printf(" -h,--help print this message and quit\n");
printf(" -v,--verbose be verbose\n");
printf(" -D,--disable_dontaudit Remove dontaudits from policy\n");
@ -175,7 +175,7 @@ static void parse_command_line(int argc, char **argv)
no_reload = 0;
create_store = 0;
while ((i =
getopt_long(argc, argv, "p:s:b:hi:lvqe:d:r:u:RnBDP", opts,
getopt_long(argc, argv, "p:s:b:hi:lvqe:d:r:u:RnNBDP", opts,
NULL)) != -1) {
switch (i) {
case 'b':
@ -218,6 +218,9 @@ static void parse_command_line(int argc, char **argv)
case 'n':
no_reload = 1;
break;
case 'N':
no_reload = 1;
break;
case 'B':
build = 1;
break;