[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 3/5] add the simple 'pivot_root' syscall, fixes pivot_root
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2012-06-10 12:41:16
Message-ID: 201206101441.16470.vda.linux () googlemail ! com
[Download RAW message or body]

On Monday 04 June 2012 22:24, Tias Guns wrote:
> patch modified from 'misc-syscalls' by Dan Drown:
> http://dan.drown.org/android/src/busybox/
> 
> Signed-off-by: Tias Guns <tias@ulyssis.org>
> ---
>  libbb/Kbuild.src   |    1 +
>  libbb/pivot_root.c |    5 +++++
>  2 files changed, 6 insertions(+)
>  create mode 100644 libbb/pivot_root.c
> 
> diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src
> index 1435145..60c351a 100644
> --- a/libbb/Kbuild.src
> +++ b/libbb/Kbuild.src
> @@ -192,3 +192,4 @@ lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o
>  lib-y += getsid.o
>  lib-$(CONFIG_DATE) += stime.o
>  lib-$(CONFIG_RDATE) += stime.o
> +lib-$(CONFIG_PIVOT_ROOT) += pivot_root.o
> diff --git a/libbb/pivot_root.c b/libbb/pivot_root.c
> new file mode 100644
> index 0000000..73e7ad2
> --- /dev/null
> +++ b/libbb/pivot_root.c
> @@ -0,0 +1,5 @@
> +#include <sys/syscall.h>
> +
> +int pivot_root(const char *new_root, const char *put_old) {
> +  return syscall(__NR_pivot_root, new_root, put_old);
> +}

Applied all syscalls additions.

Please try current git.

-- 
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic