Commit 3ceb54f7 authored by Timo Teräs's avatar Timo Teräs

main/paxmark: add paxmark also to disk inside fakeroot

parent 4c448bd1
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=paxmark
pkgver=0.9
pkgver=0.10
pkgrel=0
pkgdesc="Manage PaX marking of executables"
url="http://alpinelinux.org"
......@@ -22,6 +22,6 @@ package() {
ln -s paxmark "$pkgdir"/usr/sbin/paxmark.sh || return 1
}
md5sums="ab0e016ce553bf409d2aeb437f790d35 paxmark"
sha256sums="e7ebf89ebeab2a9a16b2bfd884a1cfda3172b37c3716a991279a511b19196c09 paxmark"
sha512sums="ea8e2d030aaef3b1b32cd313791d3f70006356ff9c28084cc5324fe686a2a0aa860c2b337c6a56da69580f74c9631cb5fa4cf9701e931c34772216f1cdf77268 paxmark"
md5sums="b8ccb3b5d6e40213e83d38d9cc62c639 paxmark"
sha256sums="43983aec547bfd805e64457f37f58ccb55081b4d21bf8d3763b7005c6ae2d1b4 paxmark"
sha512sums="2701ce00dba7e21b397443063bd4218a9f733b3d2a419ad2a2cab62d099a0997cc7f06952d7d57828bda2cb95d74fe1f067c5f585f529ae2613e49ddfdf7fc53 paxmark"
......@@ -20,8 +20,13 @@ xval=""
[ "${flags//[!s]}" -a -z "${flags//[!S]}" ] && xval="${xval}s"
for f in "$@"; do
attr -q -s pax.flags -V "${xval}" "${f}" >/dev/null && continue
ret=1
if [ -n "FAKEROOTKEY" ]; then
# fakeroot does not set xattr's on disk.
# explicitly do that, because the marked binary might
# be executed next during install.
LD_PRELOAD="" FAKEROOTKEY="" attr -q -s pax.flags -V "${xval}" "${f}" >/dev/null || ret=1
fi
attr -q -s pax.flags -V "${xval}" "${f}" >/dev/null || ret=1
done
return $ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment