diff options
Diffstat (limited to 'selinux/runcon.c')
-rw-r--r-- | selinux/runcon.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/selinux/runcon.c b/selinux/runcon.c index 741c7bba6..3502dcd3a 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c | |||
@@ -69,15 +69,14 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type, | |||
69 | } | 69 | } |
70 | 70 | ||
71 | #if ENABLE_FEATURE_RUNCON_LONG_OPTIONS | 71 | #if ENABLE_FEATURE_RUNCON_LONG_OPTIONS |
72 | static const struct option runcon_options[] = { | 72 | static const char runcon_options[] = |
73 | { "user", 1, NULL, 'u' }, | 73 | "user\0" Required_argument "u" |
74 | { "role", 1, NULL, 'r' }, | 74 | "role\0" Required_argument "r" |
75 | { "type", 1, NULL, 't' }, | 75 | "type\0" Required_argument "t" |
76 | { "range", 1, NULL, 'l' }, | 76 | "range\0" Required_argument "l" |
77 | { "compute", 0, NULL, 'c' }, | 77 | "compute\0" No_argument "c" |
78 | { "help", 0, NULL, 'h' }, | 78 | "help\0" No_argument "h" |
79 | { NULL, 0, NULL, 0 }, | 79 | "\0"; |
80 | }; | ||
81 | #endif | 80 | #endif |
82 | 81 | ||
83 | #define OPTS_ROLE (1<<0) /* r */ | 82 | #define OPTS_ROLE (1<<0) /* r */ |