4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
11 /* These strings are arranged so that odd ones
12 * result in security_setenforce(1) being done,
13 * the rest will do security_setenforce(0) */
14 static const char *const setenforce_cmd[] = {
22 int setenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
23 int setenforce_main(int argc, char **argv)
32 for (i = 0; setenforce_cmd[i]; i++) {
33 if (strcasecmp(argv[1], setenforce_cmd[i]) != 0)
35 rc = security_setenforce(i & 1);
37 bb_perror_msg_and_die("setenforce() failed");