]> git.ipfire.org Git - ipfire-2.x.git/commit
sysctl.conf: prevent unintentional writes into attacker-controlled files and FIFOs
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 5 Oct 2020 14:12:18 +0000 (14:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Oct 2020 15:07:47 +0000 (15:07 +0000)
commitb7b65e736e42be7e7988c4c3efe67ca0f2a05057
tree1880df3293839c6d529f44cfd6725528f88d24ec
parent22a6277fc93605d070f042c84f46580bf02af62a
sysctl.conf: prevent unintentional writes into attacker-controlled files and FIFOs

Similar to hard- and symlink protection introduced a while ago, this
patch enables protections against unintentional writes into
attacker-controlled regular files or FIFOs, where a program expected to
create new ones. This makes exploiting TOCTOU flaws harder.

See also: https://www.kernel.org/doc/Documentation/sysctl/fs.txt

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/etc/sysctl.conf