new package: bubblewrap
This commit is contained in:
parent
678adfea53
commit
59b760f19d
|
@ -0,0 +1,14 @@
|
|||
TERMUX_PKG_HOMEPAGE="https://github.com/containers/bubblewrap"
|
||||
TERMUX_PKG_DESCRIPTION="Unprivileged sandboxing tool"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="0.6.2"
|
||||
TERMUX_PKG_SRCURL="https://github.com/containers/bubblewrap/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz"
|
||||
TERMUX_PKG_SHA256=f8d21707b492d318380f0a76966e8cfa40c2df283de8bcf1ac51e7a4dcc12e97
|
||||
TERMUX_PKG_DEPENDS="libcap, bash-completion"
|
||||
TERMUX_PKG_BUILD_DEPENDS="docbook-xsl"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS='
|
||||
-Dselinux=disabled
|
||||
'
|
||||
# patch was based on v0.6.2
|
||||
TERMUX_PKG_AUTO_UPDATE=false
|
|
@ -0,0 +1,18 @@
|
|||
diff --git a/bubblewrap.c b/bubblewrap.c
|
||||
index b17ff99..d3359ae 100644
|
||||
--- a/bubblewrap.c
|
||||
+++ b/bubblewrap.c
|
||||
@@ -2963,7 +2963,12 @@ main (int argc,
|
||||
if (mount ("tmpfs", base_path, "tmpfs", MS_NODEV | MS_NOSUID, NULL) != 0)
|
||||
die_with_error ("Failed to mount tmpfs");
|
||||
|
||||
- old_cwd = get_current_dir_name ();
|
||||
+ /* get_current_dir_name() is not included in Bionic (Android's libc) */
|
||||
+ /* old_cwd = get_current_dir_name (); */
|
||||
+ old_cwd = getcwd(NULL, 0);
|
||||
+ if (old_cwd == NULL)
|
||||
+ die_with_error("failed in getting current working directory. "
|
||||
+ "probably the path length is equal to or longer than 4KiB");
|
||||
|
||||
/* Chdir to the new root tmpfs mount. This will be the CWD during
|
||||
the entire setup. Access old or new root via "oldroot" and "newroot". */
|
Loading…
Reference in New Issue