4 * NOTE: -P option requires libsemanage, so this feature is
5 * omitted in this version
6 * Yuichi Nakamura <ynakam@hitachisoft.jp>
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
13 int setsebool_main(int argc
, char **argv
) MAIN_EXTERNALLY_VISIBLE
;
14 int setsebool_main(int argc
, char **argv
)
24 if (LONE_CHAR(p
, '1') || strcasecmp(p
, "true") == 0 || strcasecmp(p
, "on") == 0) {
26 } else if (LONE_CHAR(p
, '0') || strcasecmp(p
, "false") == 0 || strcasecmp(p
, "off") == 0) {
32 if (security_set_boolean(argv
[1], value
) < 0)
33 bb_error_msg_and_die("can't set boolean");