From 7a347de743305383d8f22fa5e8c7fe61d8fba28b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 17 Aug 2022 09:35:17 +0000 Subject: [PATCH] build: Use pakfire_jail_bind to bind-mount local repository Signed-off-by: Michael Tremer --- src/libpakfire/build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 197621e4..4f5e3e79 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; -- 2.47.3