Files
dpkg/debian/bug-script
Guillem Jover ca27eeeed4 Rename taint tag to merged-usr-via-aliased-dirs
The old name merged-usr-via-symlinks was confusing, as other deployment
strategies can also use symlinks. Use the less ambiguous name which
describes the actual key feature of using aliased directories.
2021-01-02 18:36:37 +01:00

10 lines
251 B
Bash

#!/bin/sh
for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do
linkname="$(readlink $d)"
if [ "$linkname" = "usr$d" ] || [ "$linkname" = "/usr$d" ]; then
echo "System tainted due to merged-usr-via-aliased-dirs." >&3
break
fi
done