diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 5 | ||||
-rw-r--r-- | include/libbb.h | 1 | ||||
-rw-r--r-- | include/usage.h | 44 |
3 files changed, 40 insertions, 10 deletions
diff --git a/include/applets.h b/include/applets.h index 397a8b789..d1bf0f36b 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -133,7 +133,9 @@ USE_FSCK_MINIX(APPLET_ODDNAME(fsck.minix, fsck_minix, _BB_DIR_SBIN, _BB_SUID_NEV | |||
133 | USE_FTPGET(APPLET_ODDNAME(ftpget, ftpgetput, _BB_DIR_USR_BIN, _BB_SUID_NEVER,ftpget)) | 133 | USE_FTPGET(APPLET_ODDNAME(ftpget, ftpgetput, _BB_DIR_USR_BIN, _BB_SUID_NEVER,ftpget)) |
134 | USE_FTPPUT(APPLET_ODDNAME(ftpput, ftpgetput, _BB_DIR_USR_BIN, _BB_SUID_NEVER,ftpput)) | 134 | USE_FTPPUT(APPLET_ODDNAME(ftpput, ftpgetput, _BB_DIR_USR_BIN, _BB_SUID_NEVER,ftpput)) |
135 | USE_FUSER(APPLET(fuser, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 135 | USE_FUSER(APPLET(fuser, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
136 | USE_GETENFORCE(APPLET(getenforce, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
136 | USE_GETOPT(APPLET(getopt, _BB_DIR_BIN, _BB_SUID_NEVER)) | 137 | USE_GETOPT(APPLET(getopt, _BB_DIR_BIN, _BB_SUID_NEVER)) |
138 | USE_GETSEBOOL(APPLET(getsebool, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
137 | USE_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 139 | USE_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
138 | USE_GREP(APPLET(grep, _BB_DIR_BIN, _BB_SUID_NEVER)) | 140 | USE_GREP(APPLET(grep, _BB_DIR_BIN, _BB_SUID_NEVER)) |
139 | USE_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_NEVER)) | 141 | USE_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_NEVER)) |
@@ -187,6 +189,7 @@ USE_LS(APPLET(ls, _BB_DIR_BIN, _BB_SUID_NEVER)) | |||
187 | USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER)) | 189 | USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER)) |
188 | USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 190 | USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
189 | USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat)) | 191 | USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat)) |
192 | USE_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
190 | USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 193 | USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
191 | USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum)) | 194 | USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum)) |
192 | USE_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 195 | USE_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
@@ -249,10 +252,12 @@ USE_RUNLEVEL(APPLET(runlevel, _BB_DIR_SBIN, _BB_SUID_NEVER)) | |||
249 | USE_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 252 | USE_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
250 | USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 253 | USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
251 | USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 254 | USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
255 | USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
252 | USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) | 256 | USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) |
253 | USE_SEQ(APPLET(seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 257 | USE_SEQ(APPLET(seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
254 | USE_SETARCH(APPLET(setarch, _BB_DIR_BIN, _BB_SUID_NEVER)) | 258 | USE_SETARCH(APPLET(setarch, _BB_DIR_BIN, _BB_SUID_NEVER)) |
255 | USE_SETCONSOLE(APPLET(setconsole, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 259 | USE_SETCONSOLE(APPLET(setconsole, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
260 | USE_SETENFORCE(APPLET(setenforce, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
256 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 261 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
257 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 262 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
258 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 263 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/libbb.h b/include/libbb.h index babb39ba9..d6f08ff73 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -592,6 +592,7 @@ extern void run_shell(const char *shell, int loginshell, const char *command, co | |||
592 | extern void renew_current_security_context(void); | 592 | extern void renew_current_security_context(void); |
593 | extern void set_current_security_context(security_context_t sid); | 593 | extern void set_current_security_context(security_context_t sid); |
594 | #endif | 594 | #endif |
595 | extern void selinux_or_die(void); | ||
595 | extern int restricted_shell(const char *shell); | 596 | extern int restricted_shell(const char *shell); |
596 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); | 597 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); |
597 | extern int correct_password(const struct passwd *pw); | 598 | extern int correct_password(const struct passwd *pw); |
diff --git a/include/usage.h b/include/usage.h index 4ba540ccb..17dcf9be9 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1013,6 +1013,9 @@ | |||
1013 | " -6 When using port/proto only search IPv6 space\n" \ | 1013 | " -6 When using port/proto only search IPv6 space\n" \ |
1014 | " -SIGNAL When used with -k, this signal will be used to kill" | 1014 | " -SIGNAL When used with -k, this signal will be used to kill" |
1015 | 1015 | ||
1016 | #define getenforce_trivial_usage | ||
1017 | #define getenforce_full_usage | ||
1018 | |||
1016 | #define getopt_trivial_usage \ | 1019 | #define getopt_trivial_usage \ |
1017 | "[OPTIONS]..." | 1020 | "[OPTIONS]..." |
1018 | #define getopt_full_usage \ | 1021 | #define getopt_full_usage \ |
@@ -1047,6 +1050,11 @@ | |||
1047 | " esac\n" \ | 1050 | " esac\n" \ |
1048 | "done\n" | 1051 | "done\n" |
1049 | 1052 | ||
1053 | #define getsebool_trivial_usage \ | ||
1054 | "-a or getsebool boolean..." | ||
1055 | #define getsebool_full_usage \ | ||
1056 | " -a Show all SELinux booleans" | ||
1057 | |||
1050 | #define getty_trivial_usage \ | 1058 | #define getty_trivial_usage \ |
1051 | "[OPTIONS]... baud_rate,... line [termtype]" | 1059 | "[OPTIONS]... baud_rate,... line [termtype]" |
1052 | #define getty_full_usage \ | 1060 | #define getty_full_usage \ |
@@ -1896,6 +1904,15 @@ | |||
1896 | "/dev/hda[0-15]\n" | 1904 | "/dev/hda[0-15]\n" |
1897 | #endif | 1905 | #endif |
1898 | 1906 | ||
1907 | #define matchpathcon_trivial_usage \ | ||
1908 | "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]" | ||
1909 | #define matchpathcon_full_usage \ | ||
1910 | " -n Do not display path" \ | ||
1911 | "\n -N Do not use translations" \ | ||
1912 | "\n -f Use alternate file_context file" \ | ||
1913 | "\n -p Use prefix to speed translations" \ | ||
1914 | "\n -V Verify file context on disk matches defaults" | ||
1915 | |||
1899 | #define md5sum_trivial_usage \ | 1916 | #define md5sum_trivial_usage \ |
1900 | "[OPTION] [FILEs...]" \ | 1917 | "[OPTION] [FILEs...]" \ |
1901 | USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]") | 1918 | USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]") |
@@ -2714,6 +2731,9 @@ | |||
2714 | "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \ | 2731 | "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \ |
2715 | "bar\n" | 2732 | "bar\n" |
2716 | 2733 | ||
2734 | #define selinuxenabled_trivial_usage | ||
2735 | #define selinuxenabled_full_usage | ||
2736 | |||
2717 | #define seq_trivial_usage \ | 2737 | #define seq_trivial_usage \ |
2718 | "[first [increment]] last" | 2738 | "[first [increment]] last" |
2719 | #define seq_full_usage \ | 2739 | #define seq_full_usage \ |
@@ -2731,6 +2751,10 @@ | |||
2731 | "\n\nOptions:\n" \ | 2751 | "\n\nOptions:\n" \ |
2732 | " -r Reset output to /dev/console" | 2752 | " -r Reset output to /dev/console" |
2733 | 2753 | ||
2754 | #define setenforce_trivial_usage \ | ||
2755 | "[ Enforcing | Permissive | 1 | 0 ]" | ||
2756 | #define setenforce_full_usage | ||
2757 | |||
2734 | #define setkeycodes_trivial_usage \ | 2758 | #define setkeycodes_trivial_usage \ |
2735 | "SCANCODE KEYCODE ..." | 2759 | "SCANCODE KEYCODE ..." |
2736 | #define setkeycodes_full_usage \ | 2760 | #define setkeycodes_full_usage \ |
@@ -3449,12 +3473,12 @@ | |||
3449 | #define vconfig_full_usage \ | 3473 | #define vconfig_full_usage \ |
3450 | "Create and remove virtual ethernet devices" \ | 3474 | "Create and remove virtual ethernet devices" \ |
3451 | "\n\nOptions:\n" \ | 3475 | "\n\nOptions:\n" \ |
3452 | " add [interface-name] [vlan_id]\n" \ | 3476 | " add [interface-name] [vlan_id]\n" \ |
3453 | " rem [vlan-name]\n" \ | 3477 | " rem [vlan-name]\n" \ |
3454 | " set_flag [interface-name] [flag-num] [0 | 1]\n" \ | 3478 | " set_flag [interface-name] [flag-num] [0 | 1]\n" \ |
3455 | " set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ | 3479 | " set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ |
3456 | " set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ | 3480 | " set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ |
3457 | " set_name_type [name-type]" | 3481 | " set_name_type [name-type]" |
3458 | 3482 | ||
3459 | #define vi_trivial_usage \ | 3483 | #define vi_trivial_usage \ |
3460 | "[OPTION] [FILE]..." | 3484 | "[OPTION] [FILE]..." |
@@ -3569,9 +3593,9 @@ | |||
3569 | #define zcip_full_usage \ | 3593 | #define zcip_full_usage \ |
3570 | "Manage a ZeroConf IPv4 link-local address" \ | 3594 | "Manage a ZeroConf IPv4 link-local address" \ |
3571 | "\n\nOptions:\n" \ | 3595 | "\n\nOptions:\n" \ |
3572 | " -f foreground mode\n" \ | 3596 | " -f Foreground mode\n" \ |
3573 | " -q quit after address (no daemon)\n" \ | 3597 | " -q Quit after address (no daemon)\n" \ |
3574 | " -r 169.254.x.x request this address first\n" \ | 3598 | " -r 169.254.x.x Request this address first\n" \ |
3575 | " -v verbose" | 3599 | " -v Verbose" |
3576 | 3600 | ||
3577 | #endif /* __BB_USAGE_H__ */ | 3601 | #endif /* __BB_USAGE_H__ */ |