diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:00:36 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:00:36 +0100 |
commit | 681efe20d327e9e6774b174a617d66bbb9d21f48 (patch) | |
tree | 4331e443ee303c24364b1655651c8584db8b51c1 /include/libbb.h | |
parent | 86cf0364bd58e07646a23a1128e4a9ea79189579 (diff) | |
download | busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.tar.gz busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.tar.bz2 busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.zip |
use user's shell instead of hardwired "/bin/sh" (android needs this)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index c26012c5d..c371e35f2 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1198,10 +1198,17 @@ char *bb_simplify_path(const char *path) FAST_FUNC; | |||
1198 | /* Returns ptr to NUL */ | 1198 | /* Returns ptr to NUL */ |
1199 | char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; | 1199 | char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; |
1200 | 1200 | ||
1201 | #define FAIL_DELAY 3 | 1201 | #define LOGIN_FAIL_DELAY 3 |
1202 | extern void bb_do_delay(int seconds) FAST_FUNC; | 1202 | extern void bb_do_delay(int seconds) FAST_FUNC; |
1203 | extern void change_identity(const struct passwd *pw) FAST_FUNC; | 1203 | extern void change_identity(const struct passwd *pw) FAST_FUNC; |
1204 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; | 1204 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; |
1205 | |||
1206 | /* Returns $SHELL, getpwuid(getuid())->pw_shell, or DEFAULT_SHELL. | ||
1207 | * Note that getpwuid result might need xstrdup'ing | ||
1208 | * if there is a possibility of intervening getpwxxx() calls. | ||
1209 | */ | ||
1210 | const char *get_shell_name(void); | ||
1211 | |||
1205 | #if ENABLE_SELINUX | 1212 | #if ENABLE_SELINUX |
1206 | extern void renew_current_security_context(void) FAST_FUNC; | 1213 | extern void renew_current_security_context(void) FAST_FUNC; |
1207 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; | 1214 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; |