Improve network_support.md
PATCH v4 1/1 Improve network_support.md
List all access control methods available for networking and provide examples for each.
Signed-off-by Topi Miettinen <[email protected]>
---
v2: address comments from Richard Haines
v3: address comments from Paul Moore
v4: address further comments from Paul Moore
--- src/network_statements.md | 2 +- src/network_support.md | 238 +++++++++++++++++++++++++++++++++----- 2 files changed, 213 insertions(+), 27 deletions(-)
src/network_statements.md +1 -1
@@ -116,7 +116,7 @@ netifcon netif_id netif_context packet_context <tr> <td><code>packet_context</code></td> <td><p>The security context allocated packets. Note that these are defined but unused.</p> -<p>The iptables(8)/nftables(8) <a href="network_support.md#secmark">SECMARK services</a> should be used to label packets.</p></td> +<p>The iptables(8)/nftables(8) <a href="network_support.md#packet-controls-secmark">SECMARK services</a> should be used to label packets.</p></td> </tr> </tbody> </table>
src/network_support.md +212 -26
306 lines not on this page · raw message
Signature · 1 line
2.28.0
Hi,
Quoted 15 lines · Topi Miettinen
src/network_support.md +7
-1@@ -1,20 +1,62 @@ # SELinux Networking Support -SELinux supports the following types of network labeling: +SELinux controls network access in the kernel at two locations: at the +socket interface, and when packets are processed by the protocol +stacks. Controls at the socket interface are invoked when a task makes +network related system calls and thus the access permission checks +mimic the sockets programming interface (e.g. ***bind**(2)* +vs. `node_bind`). Packet controls are more distant from applications +and they are invoked whenever any packets are received, forwarded or
src/network_support.md line 19
Quoted 10 lines
src/network_support.md +10
-0+sent. + +Packet level controls include: +* Packet labeling with SECMARK: class `packet` +* Peer labeling with Labeled IPSec or NetLabel: class `peer` +* Interface control: class `netif` +* Network node control: class `node` + +Controls at socket interface include: +* TCP/UDP/SCTP/DCCP ports: class `port`
These two lists aren't rendered properly by pandoc, they need a newline before the first bullet point.
Signature · 2 lines
bauen1 https://dn42.bauen1.xyz/