Skip to content
LowOS hardeningBLWK-KERNEL-013

Regular-file creation protection in sticky directories is disabled ​

What this means ​

fs.protected_regular is 0 — a process can open a regular file it doesn't own inside a world-writable sticky directory in write mode, the same class of interception/tampering risk as the FIFO case but for plain files.

How to fix it ​

Set fs.protected_regular=1 (or 2 for stricter mode) via /etc/sysctl.d/ and run sysctl --system.

Check it yourself ​

Run a scan and look for BLWK-KERNEL-013 in the results:

sh
bulwark scan

Installed the standalone CLI package instead of the app? The command is bulwarkctl.

How Bulwark decides

Bulwark reads sysctl_kernel and reports this check when:

text
protected_regular == 0

If a value can't be read, Bulwark reports the check as undetermined rather than passing it. View the rule source.

References ​

  • CIS Benchmark 1.5.9

Released under the Apache License 2.0.