Skip to content

Commit

Permalink
Merge pull request #461 from MusaddikAccuKnox/master
Browse files Browse the repository at this point in the history
Typo in security.md file
  • Loading branch information
nyrahul authored Oct 29, 2021
2 parents 7c7d59e + 92104e7 commit 75f9feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getting-started/security_policy_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,6 @@ Here, we demonstrate how to define security policies using our example microserv
Block
```
* Explanation: We want to block any network operations using raw sockets from the containers with the 'ubuntu-2' label, meaning that containers cannot send non-TCP/UDP packets \(e.g., ICMP echo request or reply\) to other containers. To achieve this, we use matchCapabilities and specify the 'CAP\_NET\_RAW' capability to block raw socket creations inside the containers. Here, since we use the stream and datagram sockets to TCP and UDP packets respectively, we can still send those packets to others.
* Explanation: We want to block any network operations using raw sockets from the containers with the 'ubuntu-1' label, meaning that containers cannot send non-TCP/UDP packets \(e.g., ICMP echo request or reply\) to other containers. To achieve this, we use matchCapabilities and specify the 'CAP\_NET\_RAW' capability to block raw socket creations inside the containers. Here, since we use the stream and datagram sockets to TCP and UDP packets respectively, we can still send those packets to others.
* Verification: After applying this policy, please get into the container with the 'ubuntu-1' label and run 'curl www.kubearmor.com'. This will work fine. Then, please run 'ping 8.8.8.8'. You will see 'operation not permitted' since the 'ping' command internally requires a raw socket to send ICMP packets.

0 comments on commit 75f9feb

Please # to comment.