Skip to content

Commit

Permalink
Merge pull request from GHSA-jq35-85cj-fj4p
Browse files Browse the repository at this point in the history
[master] deny /sys/devices/virtual/powercap
  • Loading branch information
thaJeztah authored Oct 25, 2023
2 parents 4776a9e + bddd826 commit c9ccbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions oci/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func DefaultLinuxSpec() specs.Spec {
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap",
},
ReadonlyPaths: []string{
"/proc/bus",
Expand Down
1 change: 1 addition & 0 deletions profiles/apparmor/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
deny /sys/fs/c[^g]*/** wklx,
deny /sys/fs/cg[^r]*/** wklx,
deny /sys/firmware/** rwklx,
deny /sys/devices/virtual/powercap/** rwklx,
deny /sys/kernel/security/** rwklx,
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
Expand Down

0 comments on commit c9ccbfa

Please sign in to comment.