aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/setfiles.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index 8da47d274..740eaf8fb 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -613,19 +613,21 @@ int setfiles_main(int argc UNUSED_PARAM, char **argv)
613 /* Option order must match OPT_x definitions! */ 613 /* Option order must match OPT_x definitions! */
614 if (applet_name[0] == 'r') { /* restorecon */ 614 if (applet_name[0] == 'r') { /* restorecon */
615 flags = getopt32(argv, "^" 615 flags = getopt32(argv, "^"
616 "de:*f:ilnpqrsvo:FWR", 616 "de:*f:ilnpqrsvo:FWR"
617 "\0" "vv:v--p:p--v:v--q:q--v"; 617 "\0"
618 "vv:v--p:p--v:v--q:q--v",
618 &exclude_dir, &input_filename, &out_filename, 619 &exclude_dir, &input_filename, &out_filename,
619 &verbose 620 &verbose
620 ); 621 );
621 } else { /* setfiles */ 622 } else { /* setfiles */
622 flags = getopt32(argv, "^" 623 flags = getopt32(argv, "^"
623 "de:*f:ilnpqr:svo:FW" 624 "de:*f:ilnpqr:svo:FW"
624 IF_FEATURE_SETFILES_CHECK_OPTION("c:"), 625 IF_FEATURE_SETFILES_CHECK_OPTION("c:")
625 "\0" "vv:v--p:p--v:v--q:q--v"; 626 "\0"
627 "vv:v--p:p--v:v--q:q--v",
626 &exclude_dir, &input_filename, &rootpath, &out_filename, 628 &exclude_dir, &input_filename, &rootpath, &out_filename,
627 IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,) 629 IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,)
628 &verbose 630 &verbose
629 ); 631 );
630 } 632 }
631 argv += optind; 633 argv += optind;