From b430991874392959515f847b2d96916ef74e8107 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 28 Oct 2022 15:01:50 +0300 Subject: [PATCH] fix apks installation --- 1.19-nofaccessat2/Dockerfile | 2 +- 1.19-nofaccessat2/faccessat2-test.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 1.19-nofaccessat2/faccessat2-test.c diff --git a/1.19-nofaccessat2/Dockerfile b/1.19-nofaccessat2/Dockerfile index e9ebfba..ad89793 100644 --- a/1.19-nofaccessat2/Dockerfile +++ b/1.19-nofaccessat2/Dockerfile @@ -12,7 +12,7 @@ RUN set -eux; \ echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ chown -R builder:abuild /tmp/aports && \ sudo -u builder sh -c 'abuild checksum && abuild-keygen -an && abuild -r' && \ - find /home/builder -iname './*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \ + find /home/builder -type f -name '*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \ sudo -u builder sh -c 'abuild clean && abuild cleancache' && \ apk del --no-network .build-deps && \ deluser builder && \ diff --git a/1.19-nofaccessat2/faccessat2-test.c b/1.19-nofaccessat2/faccessat2-test.c new file mode 100644 index 0000000..71f9e9e --- /dev/null +++ b/1.19-nofaccessat2/faccessat2-test.c @@ -0,0 +1,10 @@ +#include +#include + +int main() { + // TODO: Use this code to test resulting images. + // Should not call faccessat2 under the hood. + faccessat(0, "/", R_OK, AT_EACCESS); + + return 0; +} \ No newline at end of file