diff options
| author | Guillem Jover <guillem@debian.org> | 2019-02-19 05:53:04 +0100 |
|---|---|---|
| committer | Guillem Jover <guillem@debian.org> | 2019-02-23 14:27:59 +0100 |
| commit | db3872abfb48ff4a5393f3c2fe343a63d90395f6 (patch) | |
| tree | e9736363afc04dae399094f16378abc30a9d519e /debian/bug-script | |
| parent | 0badaf9f58cf40c06180d2d511ebd1795682dd54 (diff) | |
| download | dpkg-db3872abfb48ff4a5393f3c2fe343a63d90395f6.tar.gz | |
debian: Include a bug-script to report on tainted merged-usr-via-symlinks
Systems deployed with that method bypass the package manager and its
understanding of the filesystem, create aliasing problems, and break
all kinds of expectations for any program that uses pathnames as key
into their database, such as u-a.
Diffstat (limited to 'debian/bug-script')
| -rw-r--r-- | debian/bug-script | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/bug-script b/debian/bug-script new file mode 100644 index 000000000..56d654818 --- /dev/null +++ b/debian/bug-script @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do + if [ "$(readlink $d)" = "usr$d" ]; then + echo "System tainted due to merged-usr-via-symlinks." >&3 + break + fi +done |
