summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Grepl <mgrepl@redhat.com>2014-04-11 11:14:50 +0200
committerMiroslav Grepl <mgrepl@redhat.com>2014-04-11 18:33:38 +0200
commit61d3d40e791a4ac392930f11785e4057f67a5b09 (patch)
tree1708f199048b41ca31ea68b88ce648c4e07651f7
parentba8e76cd514e8ce92a48931963e97fe79589a71a (diff)
downloadsetools-61d3d40e791a4ac392930f11785e4057f67a5b09.zip
setools-61d3d40e791a4ac392930f11785e4057f67a5b09.tar.gz
setools-61d3d40e791a4ac392930f11785e4057f67a5b09.tar.xz
Add support for boolean subs
-rw-r--r--secmds/seinfo.c2
-rw-r--r--secmds/sesearch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/secmds/seinfo.c b/secmds/seinfo.c
index a970890..54b2a6a 100644
--- a/secmds/seinfo.c
+++ b/secmds/seinfo.c
@@ -1720,7 +1720,7 @@ int main(int argc, char **argv)
case 'b': /* conditional booleans */
bools = 1;
if (optarg != 0)
- bool_name = optarg;
+ bool_name = selinux_boolean_sub(optarg);
break;
case OPT_INITIALSID:
isids = 1;
diff --git a/secmds/sesearch.c b/secmds/sesearch.c
index 387d526..e1436a7 100644
--- a/secmds/sesearch.c
+++ b/secmds/sesearch.c
@@ -1067,7 +1067,7 @@ int main(int argc, char **argv)
printf("Missing boolean for -b (--bool)\n");
exit(1);
}
- cmd_opts.bool_name = strdup(optarg);
+ cmd_opts.bool_name = strdup(selinux_boolean_sub(optarg));
if (!cmd_opts.bool_name) {
fprintf(stderr, "%s\n", strerror(errno));
exit(1);