Skip to content

Commit

Permalink
apparmor: add read permission for executables
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Nov 14, 2024
1 parent b2ff988 commit 8a27caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/apparmorprofile-sleep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ policy: |2
# Executable rules
/bin/busybox ix,
/bin/busybox ixr,
/lib/ld-musl-x86_64.so.1 mr,
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/daemon/apparmorprofile/crd2armor/crd2armor.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
# Executable rules
{{ if ne .Abstract.Executable nil }}{{ if ne .Abstract.Executable.AllowedExecutables nil }}
{{range $allowed := .Abstract.Executable.AllowedExecutables}} {{$allowed}} ix,
{{range $allowed := .Abstract.Executable.AllowedExecutables}} {{$allowed}} ixr,
{{end}}{{end}}
{{ if ne .Abstract.Executable.AllowedLibraries nil }}
{{range $allowedlib := .Abstract.Executable.AllowedLibraries}} {{$allowedlib}} mr,
Expand Down

0 comments on commit 8a27caa

Please sign in to comment.