Bug#959070: klibc-utils: fstype falsely claims to need an executable stack
Package: klibc-utils
Version: 2.0.7-1
Severity: normal
root@sevm:~/pol# /usr/lib/klibc/bin/fstype < /dev/sda2
Segmentation fault
root@sevm:~/pol# execstack -c /usr/lib/klibc/bin/fstype
root@sevm:~/pol# /usr/lib/klibc/bin/fstype < /dev/sda2
FSTYPE=btrfs
FSSIZE=719360278528
The fstype program is listed as needing an executable stack, which will cause
it to crash when run on a system with a security policy preventing executable
stacke. If you clear the execstack bit it appears to work correctly.
https://akkadia.org/drepper/nonselsec.pdf
Page 8 of Ulrich Drepper's document about non-SE Linux security explains the
options for dealing with this.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Enforcing - Policy name: default
Versions of packages klibc-utils depends on:
ii libklibc 2.0.7-1
klibc-utils recommends no packages.
klibc-utils suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/lib/klibc/bin/fstype (from klibc-utils package)
Reply to: