diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index a4aa90da3..e5f03517f 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -780,6 +780,7 @@ char *bb_simplify_path(const char *path); | |||
780 | extern void bb_do_delay(int seconds); | 780 | extern void bb_do_delay(int seconds); |
781 | extern void change_identity(const struct passwd *pw); | 781 | extern void change_identity(const struct passwd *pw); |
782 | extern const char *change_identity_e2str(const struct passwd *pw); | 782 | extern const char *change_identity_e2str(const struct passwd *pw); |
783 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) ATTRIBUTE_NORETURN; | ||
783 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args); | 784 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args); |
784 | #if ENABLE_SELINUX | 785 | #if ENABLE_SELINUX |
785 | extern void renew_current_security_context(void); | 786 | extern void renew_current_security_context(void); |
@@ -790,6 +791,21 @@ extern void setfscreatecon_or_die(security_context_t scontext); | |||
790 | #endif | 791 | #endif |
791 | extern void selinux_or_die(void); | 792 | extern void selinux_or_die(void); |
792 | extern int restricted_shell(const char *shell); | 793 | extern int restricted_shell(const char *shell); |
794 | |||
795 | /* setup_environment: | ||
796 | * if loginshell = 1: cd(pw->pw_dir), clear environment, then set | ||
797 | * TERM=(old value) | ||
798 | * USER=pw->pw_name, LOGNAME=pw->pw_name | ||
799 | * PATH=bb_default_[root_]path | ||
800 | * HOME=pw->pw_dir | ||
801 | * SHELL=shell | ||
802 | * else if changeenv = 1: | ||
803 | * if not root (if pw->pw_uid != 0): | ||
804 | * USER=pw->pw_name, LOGNAME=pw->pw_name | ||
805 | * HOME=pw->pw_dir | ||
806 | * SHELL=shell | ||
807 | * else does nothing | ||
808 | */ | ||
793 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); | 809 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); |
794 | extern int correct_password(const struct passwd *pw); | 810 | extern int correct_password(const struct passwd *pw); |
795 | /* Returns a ptr to static storage */ | 811 | /* Returns a ptr to static storage */ |