aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index 989510e3d..ca3fd9361 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -4,6 +4,46 @@
4 Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp> 4 Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp>
5*/ 5*/
6 6
7//usage:#define setfiles_trivial_usage
8//usage: "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]"
9//usage: IF_FEATURE_SETFILES_CHECK_OPTION(
10//usage: " [-c policyfile] spec_file"
11//usage: )
12//usage: " pathname"
13//usage:#define setfiles_full_usage "\n\n"
14//usage: "Reset file contexts under pathname according to spec_file\n"
15//usage: IF_FEATURE_SETFILES_CHECK_OPTION(
16//usage: "\n -c FILE Check the validity of the contexts against the specified binary policy"
17//usage: )
18//usage: "\n -d Show which specification matched each file"
19//usage: "\n -l Log changes in file labels to syslog"
20//usage: "\n -n Don't change any file labels"
21//usage: "\n -q Suppress warnings"
22//usage: "\n -r DIR Use an alternate root path"
23//usage: "\n -e DIR Exclude DIR"
24//usage: "\n -F Force reset of context to match file_context for customizable files"
25//usage: "\n -o FILE Save list of files with incorrect context"
26//usage: "\n -s Take a list of files from stdin (instead of command line)"
27//usage: "\n -v Show changes in file labels, if type or role are changing"
28//usage: "\n -vv Show changes in file labels, if type, role, or user are changing"
29//usage: "\n -W Display warnings about entries that had no matching files"
30//usage:
31//usage:#define restorecon_trivial_usage
32//usage: "[-iFnRv] [-e EXCLUDEDIR]... [-o FILE] [-f FILE]"
33//usage:#define restorecon_full_usage "\n\n"
34//usage: "Reset security contexts of files in pathname\n"
35//usage: "\n -i Ignore files that don't exist"
36//usage: "\n -f FILE File with list of files to process"
37//usage: "\n -e DIR Directory to exclude"
38//usage: "\n -R,-r Recurse"
39//usage: "\n -n Don't change any file labels"
40//usage: "\n -o FILE Save list of files with incorrect context"
41//usage: "\n -v Verbose"
42//usage: "\n -vv Show changed labels"
43//usage: "\n -F Force reset of context to match file_context"
44//usage: "\n for customizable files, or the user section,"
45//usage: "\n if it has changed"
46
7#include "libbb.h" 47#include "libbb.h"
8#if ENABLE_FEATURE_SETFILES_CHECK_OPTION 48#if ENABLE_FEATURE_SETFILES_CHECK_OPTION
9#include <sepol/sepol.h> 49#include <sepol/sepol.h>