From: Michael Tremer Date: Wed, 17 Aug 2022 09:35:17 +0000 (+0000) Subject: build: Use pakfire_jail_bind to bind-mount local repository X-Git-Tag: 0.9.28~479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a347de743305383d8f22fa5e8c7fe61d8fba28b;p=pakfire.git build: Use pakfire_jail_bind to bind-mount local repository Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 197621e45..4f5e3e79a 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -96,7 +96,7 @@ static int pakfire_build_has_flag(struct pakfire_build* build, int flag) { } /* - This function enables the local repository so that it can be access by + This function enables the local repository so that it can be accessed by a pakfire instance running inside the chroot. */ static int pakfire_build_enable_repos(struct pakfire_build* build) { @@ -121,7 +121,7 @@ static int pakfire_build_enable_repos(struct pakfire_build* build) { } // Bind-mount the repository data read-only - r = pakfire_bind(build->pakfire, path, NULL, MS_RDONLY); + r = pakfire_jail_bind(build->jail, path, path, MS_RDONLY); if (r) { ERROR(build->pakfire, "Could not bind-mount the repository at %s: %m\n", path); goto ERROR;