diff options
author | Robert Griebl | 2002-06-04 20:45:46 +0000 |
---|---|---|
committer | Robert Griebl | 2002-06-04 20:45:46 +0000 |
commit | 1fca558799350fb6caff97f55aa6d1237b08fccb (patch) | |
tree | bd211c50ca4a34fd4c6317696c62564fb77171e9 /loginutils/tinylogin.h | |
parent | ea1a63a2011a44b143cc46c7d80a8152f5358e24 (diff) | |
download | busybox-1fca558799350fb6caff97f55aa6d1237b08fccb.zip busybox-1fca558799350fb6caff97f55aa6d1237b08fccb.tar.gz |
Bigger patch for (partial) tinylogin integration
- Made a new dir loginutils
- Moved all applets from pwd_grp to loginutils
- Added new applets su.c login.c to loginutils
- Made a new dir libpwdgrp
- Moved everything from pwd_grp/libpwd_grp there
- Added shadow.c to libpwdgrp
- Removed dir pwd_grp
- Added usage strings for login and su to usage.h
- Changed main Makefile to reflect the dir rearrangements
[Parts of this patch may overlap with my other two patches]
Diffstat (limited to 'loginutils/tinylogin.h')
-rw-r--r-- | loginutils/tinylogin.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/loginutils/tinylogin.h b/loginutils/tinylogin.h new file mode 100644 index 0000000..5e56a2c --- /dev/null +++ b/loginutils/tinylogin.h @@ -0,0 +1,10 @@ +#ifndef BB_LOGINUTILS_SHELL_H +#define BB_LOGINUTILS_SHELL_H + +extern void change_identity ( const struct passwd *pw ); +extern void run_shell ( const char *shell, int loginshell, const char *command, char **additional_args ); +extern int restricted_shell ( const char *shell ); +extern void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw ); +extern int correct_password ( const struct passwd *pw ); + +#endif |