This repository has been archived on 2025-06-04. You can view files and clone it, but cannot push or open issues or pull requests.
Sören Tempel 17cb68e9fb abuild-rmtemp: Do not follow symbolic links
Symbolic links might point to files outside of the chroot and
thus might delete files outside the chroot. This allows deletion
of arbitrary directories on the host from a malicious APKBUILD.

Following hard links shouldn't be a problem since hard links (usually)
cannot refer to directories and since remove(3) removes the link, not
the file it points to it shouldn't cause a problem.

I noticed this because alpine-baselayout creates /var/run as a symlink
to /run. Therefore causing /run to be deleted on the host when using
abuild-rmtemp which in turn causes a bunch of software to no longer
function properly (including OpenRC).
2018-10-11 17:46:45 +02:00
2017-06-23 11:27:41 +03:00
2016-05-20 10:19:08 +02:00
2017-06-27 14:52:50 +03:00
2017-09-19 11:59:18 +00:00
2016-08-12 15:26:06 +02:00
2016-08-12 15:26:06 +02:00
2018-10-03 12:58:27 +00:00
2018-10-03 08:24:18 +00:00
2016-06-13 12:34:05 +00:00
Description
Build script to build Alpine packages (mirror)
1.2 MiB
Languages
Shell 61.4%
Roff 12%
C 10.4%
Perl 9.4%
Ruby 4.9%
Other 1.9%