mirror of
https://passt.top/passt
synced 2025-03-07 16:55:10 +00:00
apparmor: allow netns paths on /tmp
For some unknown reason "owner" makes it impossible to open bind mounted netns references as apparmor denies it. In the kernel denied log entry we see ouid=0 but it is not clear why that is as the actual file is owned by the real (rootless) user id. In abstractions/pasta there is already `@{run}/user/@{uid}/**` without owner set for the same reason as this path contains the netns path by default when running under Podman. Fixes: 72884484b00d ("apparmor: allow read access on /tmp for pasta") Signed-off-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
80f7ff2996
commit
6cdc9fd51b
@ -19,7 +19,7 @@ profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) {
|
||||
include <abstractions/pasta>
|
||||
|
||||
# Alternatively: include <abstractions/user-tmp>
|
||||
owner /tmp/** rw, # tap_sock_unix_init(), pcap(),
|
||||
/tmp/** rw, # tap_sock_unix_init(), pcap(),
|
||||
# write_pidfile(),
|
||||
# logfile_init(),
|
||||
# pasta_open_ns()
|
||||
|
Loading…
x
Reference in New Issue
Block a user