Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apparmor: allow 'r' /sys/kernel/mm/transparent_hugepage/hpage_pmd_size #7850

Merged
4 changes: 4 additions & 0 deletions interfaces/apparmor/template.go
Expand Up @@ -369,6 +369,7 @@ var defaultTemplate = `
/sys/devices/virtual/tty/{console,tty*}/active r,
/sys/fs/cgroup/memory/memory.limit_in_bytes r,
/sys/fs/cgroup/memory/snap.@{SNAP_INSTANCE_NAME}{,.*}/memory.limit_in_bytes r,
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
/sys/module/apparmor/parameters/enabled r,
/{,usr/}lib/ r,

Expand Down Expand Up @@ -714,6 +715,9 @@ profile snap-update-ns.###SNAP_INSTANCE_NAME### (attach_disconnected) {
/dev/random r,
/dev/urandom r,

# golang runtime variables
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,

# Allow access to the uuidd daemon (this daemon is a thin wrapper around
# time and getrandom()/{,u}random and, when available, runs under an
# unprivilged, dedicated user).
Expand Down