diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 14:03:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 14:03:30 +0000 |
commit | 397137b8158298cae14efae330abc57ba11630a5 (patch) | |
tree | 66a755944637f3229f3f801c999132e8d9386856 /include | |
parent | 845db2acf3cf7e87c20cee01dc228de6fad593ed (diff) | |
download | busybox-w32-397137b8158298cae14efae330abc57ba11630a5.tar.gz busybox-w32-397137b8158298cae14efae330abc57ba11630a5.tar.bz2 busybox-w32-397137b8158298cae14efae330abc57ba11630a5.zip |
setfiles,restorecon: new SELinux applets by Yuichi Nakamura <ynakam@hitachisoft.jp>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 2 | ||||
-rw-r--r-- | include/usage.h | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index a05f74abd..b5e1e4ced 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -270,6 +270,7 @@ USE_HALT(APPLET_ODDNAME(reboot, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, reboot)) | |||
270 | USE_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 270 | USE_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
271 | USE_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 271 | USE_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
272 | USE_RESIZE(APPLET(resize, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 272 | USE_RESIZE(APPLET(resize, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
273 | USE_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, _BB_DIR_SBIN, _BB_SUID_NEVER, restorecon)) | ||
273 | USE_RM(APPLET_NOFORK(rm, rm, _BB_DIR_BIN, _BB_SUID_NEVER, rm)) | 274 | USE_RM(APPLET_NOFORK(rm, rm, _BB_DIR_BIN, _BB_SUID_NEVER, rm)) |
274 | USE_RMDIR(APPLET_NOFORK(rmdir, rmdir, _BB_DIR_BIN, _BB_SUID_NEVER, rmdir)) | 275 | USE_RMDIR(APPLET_NOFORK(rmdir, rmdir, _BB_DIR_BIN, _BB_SUID_NEVER, rmdir)) |
275 | USE_RMMOD(APPLET(rmmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 276 | USE_RMMOD(APPLET(rmmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
@@ -288,6 +289,7 @@ USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq)) | |||
288 | USE_SETARCH(APPLET(setarch, _BB_DIR_BIN, _BB_SUID_NEVER)) | 289 | USE_SETARCH(APPLET(setarch, _BB_DIR_BIN, _BB_SUID_NEVER)) |
289 | USE_SETCONSOLE(APPLET(setconsole, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 290 | USE_SETCONSOLE(APPLET(setconsole, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
290 | USE_SETENFORCE(APPLET(setenforce, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 291 | USE_SETENFORCE(APPLET(setenforce, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
292 | USE_SETFILES(APPLET(setfiles, _BB_DIR_SBIN, _BB_SUID_NEVER)) | ||
291 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 293 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
292 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 294 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
293 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 295 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index 679c3476b..6608938f6 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2783,6 +2783,22 @@ | |||
2783 | #define resize_full_usage \ | 2783 | #define resize_full_usage \ |
2784 | "Resize the screen" | 2784 | "Resize the screen" |
2785 | 2785 | ||
2786 | #define restorecon_trivial_usage \ | ||
2787 | "[-iFnrRv] [-e excludedir]... [-o filename] [-f filename | pathname]" | ||
2788 | #define restorecon_full_usage \ | ||
2789 | "Reset security contexts of files in pathname\n" \ | ||
2790 | "\n -i Ignore files that do not exist" \ | ||
2791 | "\n -f filename File with list of files to process. Use - for stdin" \ | ||
2792 | "\n -e directory Directory to exclude" \ | ||
2793 | "\n -R,-r Recurse directories" \ | ||
2794 | "\n -n Don't change any file labels" \ | ||
2795 | "\n -o filename Save list of files with incorrect context" \ | ||
2796 | "\n -v Verbose" \ | ||
2797 | "\n -vv Show changed labels" \ | ||
2798 | "\n -F Force reset of context to match file_context" \ | ||
2799 | "\n for customizable files, or the user section," \ | ||
2800 | "\n if it has changed" | ||
2801 | |||
2786 | #define rm_trivial_usage \ | 2802 | #define rm_trivial_usage \ |
2787 | "[OPTION]... FILE..." | 2803 | "[OPTION]... FILE..." |
2788 | #define rm_full_usage \ | 2804 | #define rm_full_usage \ |
@@ -2947,6 +2963,31 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
2947 | "[Enforcing | Permissive | 1 | 0]" | 2963 | "[Enforcing | Permissive | 1 | 0]" |
2948 | #define setenforce_full_usage | 2964 | #define setenforce_full_usage |
2949 | 2965 | ||
2966 | #define setfiles_trivial_usage \ | ||
2967 | "[-dnpqsvW] [-e dir]... [-o filename] [-r alt_root_path]" \ | ||
2968 | USE_FEATURE_SETFILES_CHECK_OPTION( \ | ||
2969 | " [-c policyfile] spec_file" \ | ||
2970 | ) \ | ||
2971 | " pathname" | ||
2972 | |||
2973 | #define setfiles_full_usage \ | ||
2974 | "Reset file contexts under pathname according to spec_file" \ | ||
2975 | USE_FEATURE_SETFILES_CHECK_OPTION( \ | ||
2976 | "\n -c file Check the validity of the contexts against the specified binary policy" \ | ||
2977 | ) \ | ||
2978 | "\n -d Show which specification matched each file" \ | ||
2979 | "\n -l Log changes in file labels to syslog" \ | ||
2980 | "\n -n Don't change any file labels" \ | ||
2981 | "\n -q Suppress no-error output" \ | ||
2982 | "\n -r dir Use an altenate root path" \ | ||
2983 | "\n -e dir Exclude directory" \ | ||
2984 | "\n -F Force reset of context to match file_context for customizable files" \ | ||
2985 | "\n -o file Save list of files with incorrect context" \ | ||
2986 | "\n -s Take a list of files from standard input (instead of command line)" \ | ||
2987 | "\n -v Show changes in file labels, if type or role are changing" \ | ||
2988 | "\n -vv Show changes in file labels, if type, role, or user are changing" \ | ||
2989 | "\n -W Display warnings about entries that had no matching files" | ||
2990 | |||
2950 | #define setkeycodes_trivial_usage \ | 2991 | #define setkeycodes_trivial_usage \ |
2951 | "SCANCODE KEYCODE ..." | 2992 | "SCANCODE KEYCODE ..." |
2952 | #define setkeycodes_full_usage \ | 2993 | #define setkeycodes_full_usage \ |