libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git] / selinux / getsebool.c
index 06a298061b54865c8d036bad4268d146ad49585b..e8f0fefb053d4b53106fa9001faae6b7a0b7bc42 100644 (file)
@@ -4,11 +4,17 @@
  * Based on libselinux 1.33.1
  * Port to BusyBox  Hiroshi Shinji <shiroshi@my.email.ne.jp>
  *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 
+//usage:#define getsebool_trivial_usage
+//usage:       "-a or getsebool boolean..."
+//usage:#define getsebool_full_usage "\n\n"
+//usage:       "       -a      Show all selinux booleans"
+
 #include "libbb.h"
 
-int getsebool_main(int argc, char **argv);
+int getsebool_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int getsebool_main(int argc, char **argv)
 {
        int i, rc = 0, active, pending, len = 0;
@@ -24,7 +30,7 @@ int getsebool_main(int argc, char **argv)
 
                rc = security_get_boolean_names(&names, &len);
                if (rc)
-                       bb_perror_msg_and_die("cannot get boolean names");
+                       bb_perror_msg_and_die("can't get boolean names");
 
                if (!len) {
                        puts("No booleans");
@@ -53,7 +59,7 @@ int getsebool_main(int argc, char **argv)
                printf("%s --> %s", names[i], (active ? "on" : "off"));
                if (pending != active)
                        printf(" pending: %s", (pending ? "on" : "off"));
-               putchar('\n');
+               bb_putchar('\n');
        }
 
        if (ENABLE_FEATURE_CLEAN_UP) {