--handle-unknown option takes a required argument
PATCH 1/1 --handle-unknown option takes a required argument
From: Laurent Bigonville <[email protected]>
Fix a segmentation fault if the --handle-unknown option was set without arguments.
Thanks to Alexandre Rebert and his team at Carnegie Mellon University for detecting this crash.
--- checkpolicy/checkmodule.c | 2 +- checkpolicy/checkpolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
checkpolicy/checkmodule.c +1 -1
@@ -171,7 +171,7 @@ int main(int argc, char **argv) {"output", required_argument, NULL, 'o'}, {"binary", no_argument, NULL, 'b'}, {"version", no_argument, NULL, 'V'}, - {"handle-unknown", optional_argument, NULL, 'U'}, + {"handle-unknown", required_argument, NULL, 'U'}, {"mls", no_argument, NULL, 'M'}, {NULL, 0, NULL, 0} };
checkpolicy/checkpolicy.c +1 -1
@@ -402,7 +402,7 @@ int main(int argc, char **argv) {"binary", no_argument, NULL, 'b'}, {"debug", no_argument, NULL, 'd'}, {"version", no_argument, NULL, 'V'}, - {"handle-unknown", optional_argument, NULL, 'U'}, + {"handle-unknown", required_argument, NULL, 'U'}, {"mls", no_argument, NULL, 'M'}, {"help", no_argument, NULL, 'h'}, {NULL, 0, NULL, 0}
Signature · 7 lines
1.8.3.2 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
Fix a segmentation fault if the --handle-unknown option was set without arguments.
Thanks to Alexandre Rebert and his team at Carnegie Mellon University for detecting this crash.
Thanks, merged.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.