Tighten /dev/pts permissions

Apply a fuller fix for CVE-2024-28085 and remove g+w from
pseudo-terminals by default.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
This commit is contained in:
Chris Hofstaedtler 2025-03-06 22:44:01 +01:00
parent 81f2063c45
commit 319cdc98f1

2
init
View File

@ -42,7 +42,7 @@ mount -t devtmpfs -o nosuid,mode=0755 udev /dev
[ ! -h /dev/stderr ] && ln -s /proc/self/fd/2 /dev/stderr
mkdir /dev/pts
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
mount -t devpts -o noexec,nosuid,gid=5,mode=0600 devpts /dev/pts || true
# Export the dpkg architecture
export DPKG_ARCH=