Skip to content

eBPF-based security platform

docs: say that root mints policy bits with a file system it mounts

Daniel Borkmannf6e02f815c3e
diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rst
index 478d0ca1..38aa199e 100644
--- a/Documentation/security/threat-model.rst
+++ b/Documentation/security/threat-model.rst
@@ -1738,12 +1738,17 @@ R23 Policy labels follow the inode
of the executable, or the new inode a package upgrade or an editor
leaves in its place, carries no policy until the upatch is loaded
again, and a hard link or a rename that root makes of an inode
- without the seal label moves the policy to another path. A task
+ without the seal label moves the policy to another path. A file
+ system that root makes and mounts, a loop image say, carries the
+ xattr on its own executables, written where no seal ran, and an
+ execution from it takes whatever bits root put there. A task
keeps the bits it accumulated, a socket keeps the snapshot of its
creator, and a socket passed from another task carries that task's
- bits. An enforcement upatch therefore decides what an execution
- without policy bits may do, and the operator reloads after a change
- to a labeled path. Detection: none on the target.
+ bits. Root can therefore give its own processes any bits: an
+ enforcement upatch decides what an execution without policy bits
+ may do, lets a bit restrict rather than exempt, and the operator
+ reloads after a change to a labeled path. Detection: none on the
+ target.
Threats to resolve
------------------
diff --git a/Documentation/upatches/publish/beefile.rst b/Documentation/upatches/publish/beefile.rst
index 024d939c..3593b9d0 100644
--- a/Documentation/upatches/publish/beefile.rst
+++ b/Documentation/upatches/publish/beefile.rst
@@ -240,7 +240,10 @@ that reads it. The header is installed beside the shirudo BPF headers.
The signed ``SHPL`` section opts the upatch into these bindings;
declaring the maps without policy tables leaves them as ordinary
upatch-owned maps. Signed BPF programs can write the maps, so enforcement
-programs must treat them as read-only by contract.
+programs must treat them as read-only by contract. Root can give its own
+processes any bit, through a file system it mounts whose executables
+carry the xattr, so let a bit restrict what a task may do, never exempt
+it from a rule.
The generator and the updater run on the operator host with the
operator's rights. The target receives only the signed result. Without