Skip to content

Commit 04a9d41

Browse files
authored
examples for sys_ptrace TC (#187)
* examples for sys_ptrace TC * fix yamlint
1 parent 0b015bb commit 04a9d41

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: sysptrace-fail
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: sysptrace-fail
12+
namespace: tnf
13+
spec:
14+
shareProcessNamespace: true
15+
automountServiceAccountToken: false
16+
securityContext:
17+
runAsUser: 1000900000
18+
runAsGroup: 1000900000
19+
fsGroup: 1000900000
20+
containers:
21+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
22+
name: test
23+
resources: {}
24+
securityContext:
25+
seLinuxOptions:
26+
level: "s0:c30,c15"
27+
capabilities:
28+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
29+
allowPrivilegeEscalation: false
30+
readOnlyRootFilesystem: false
31+
privileged: false
32+
dnsPolicy: ClusterFirst
33+
restartPolicy: Always
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: sysptrace-pass
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: sysptrace-pass
12+
namespace: tnf
13+
spec:
14+
shareProcessNamespace: true
15+
automountServiceAccountToken: false
16+
securityContext:
17+
runAsUser: 1000900000
18+
runAsGroup: 1000900000
19+
fsGroup: 1000900000
20+
containers:
21+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
22+
name: test
23+
resources: {}
24+
securityContext:
25+
seLinuxOptions:
26+
level: "s0:c30,c15"
27+
capabilities:
28+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
29+
add: ["SYS_PTRACE"]
30+
allowPrivilegeEscalation: false
31+
readOnlyRootFilesystem: false
32+
privileged: false
33+
dnsPolicy: ClusterFirst
34+
restartPolicy: Always

0 commit comments

Comments
 (0)