Skip to content

Commit

Permalink
add SELinux policy for ip AVCs
Browse files Browse the repository at this point in the history
Some AVC like the following were generated.
```
AVC avc:  denied  { sys_ptrace } for  pid=59993 comm="ip" capability=19  scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:ifconfig_t:s0 tclass=capability permissive=0
```
  • Loading branch information
ibotty committed May 22, 2023
1 parent 0733bc6 commit 22d5f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions overlay.d/99okd/usr/lib/okd/selinux-fixes.cil
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
(allow iscsid_t self (capability (dac_override)))
; iptables wrapper script fix
(allow iptables_t container_runtime_tmpfs_t (chr_file (read write)))
; https://github.com/okd-project/okd/discussions/1611
(typeattributeset cil_gen_require ifconfig_t)
(typeattributeset cil_gen_require container_runtime_tmpfs_t)
(typeattributeset cil_gen_require container_runtime_t)
(allow ifconfig_t container_runtime_t (fifo_file (append)))
(allow ifconfig_t container_runtime_tmpfs_t (chr_file (read write)))
(allow ifconfig_t self (capability (dac_override dac_read_search sys_ptrace)))

0 comments on commit 22d5f71

Please sign in to comment.