4 |
* Based on libselinux 1.33.1 |
* Based on libselinux 1.33.1 |
5 |
* Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> |
* Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> |
6 |
* |
* |
7 |
|
* Licensed under GPLv2, see file LICENSE in this tarball for details. |
8 |
*/ |
*/ |
9 |
|
|
10 |
#include "libbb.h" |
#include "libbb.h" |
21 |
}; |
}; |
22 |
|
|
23 |
int setenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
int setenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
24 |
int setenforce_main(int argc, char **argv) |
int setenforce_main(int argc UNUSED_PARAM, char **argv) |
25 |
{ |
{ |
26 |
int i, rc; |
int i, rc; |
27 |
|
|
28 |
if (argc != 2) |
if (!argv[1] || argv[2]) |
29 |
bb_show_usage(); |
bb_show_usage(); |
30 |
|
|
31 |
selinux_or_die(); |
selinux_or_die(); |