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