aboutsummaryrefslogtreecommitdiff
path: root/selinux/chcon.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-04-11 03:29:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /selinux/chcon.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'selinux/chcon.c')
-rw-r--r--selinux/chcon.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c
index e00cdda1b..8644502b5 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -7,6 +7,39 @@
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this source tree. 8 * Licensed under GPLv2, see file LICENSE in this source tree.
9 */ 9 */
10
11//usage:#define chcon_trivial_usage
12//usage: "[OPTIONS] CONTEXT FILE..."
13//usage: "\n chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..."
14//usage: IF_FEATURE_CHCON_LONG_OPTIONS(
15//usage: "\n chcon [OPTIONS] --reference=RFILE FILE..."
16//usage: )
17//usage:#define chcon_full_usage "\n\n"
18//usage: "Change the security context of each FILE to CONTEXT\n"
19//usage: IF_FEATURE_CHCON_LONG_OPTIONS(
20//usage: "\n -v,--verbose Verbose"
21//usage: "\n -c,--changes Report changes made"
22//usage: "\n -h,--no-dereference Affect symlinks instead of their targets"
23//usage: "\n -f,--silent,--quiet Suppress most error messages"
24//usage: "\n --reference=RFILE Use RFILE's group instead of using a CONTEXT value"
25//usage: "\n -u,--user=USER Set user/role/type/range in the target"
26//usage: "\n -r,--role=ROLE security context"
27//usage: "\n -t,--type=TYPE"
28//usage: "\n -l,--range=RANGE"
29//usage: "\n -R,--recursive Recurse"
30//usage: )
31//usage: IF_NOT_FEATURE_CHCON_LONG_OPTIONS(
32//usage: "\n -v Verbose"
33//usage: "\n -c Report changes made"
34//usage: "\n -h Affect symlinks instead of their targets"
35//usage: "\n -f Suppress most error messages"
36//usage: "\n -u USER Set user/role/type/range in the target security context"
37//usage: "\n -r ROLE"
38//usage: "\n -t TYPE"
39//usage: "\n -l RNG"
40//usage: "\n -R Recurse"
41//usage: )
42
10#include <getopt.h> 43#include <getopt.h>
11#include <selinux/context.h> 44#include <selinux/context.h>
12 45