diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-26 10:01:18 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-26 10:01:18 +0100 |
commit | 26ffe81188a5555824bc86b1953517f7ba4524a9 (patch) | |
tree | 79b05ca36349747f5bf5eee0cfcf87a29db5f233 /include | |
parent | fd686a262fa34b71900b010b4b31d7e2e3f3385c (diff) | |
download | busybox-w32-26ffe81188a5555824bc86b1953517f7ba4524a9.tar.gz busybox-w32-26ffe81188a5555824bc86b1953517f7ba4524a9.tar.bz2 busybox-w32-26ffe81188a5555824bc86b1953517f7ba4524a9.zip |
su: move restricted_shell into su.c (the only user)
function old new delta
su_main 448 468 +20
buffer_fill_and_print 179 196 +17
scriptreplay_main 205 208 +3
localcmd 275 277 +2
hash_find 233 234 +1
devmem_main 469 463 -6
install_main 724 716 -8
setusershell 11 - -11
find_pair 187 169 -18
restricted_shell 49 - -49
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92) Total: -49 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 98080e841..515e995d0 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1139,7 +1139,6 @@ extern void selinux_preserve_fcontext(int fdesc) FAST_FUNC; | |||
1139 | #define selinux_preserve_fcontext(fdesc) ((void)0) | 1139 | #define selinux_preserve_fcontext(fdesc) ((void)0) |
1140 | #endif | 1140 | #endif |
1141 | extern void selinux_or_die(void) FAST_FUNC; | 1141 | extern void selinux_or_die(void) FAST_FUNC; |
1142 | extern int restricted_shell(const char *shell) FAST_FUNC; | ||
1143 | 1142 | ||
1144 | /* setup_environment: | 1143 | /* setup_environment: |
1145 | * if chdir pw->pw_dir: ok: else if to_tmp == 1: goto /tmp else: goto / or die | 1144 | * if chdir pw->pw_dir: ok: else if to_tmp == 1: goto /tmp else: goto / or die |