apparmor: Fix comments after PID file and AF_UNIX socket creation refactoring
Now: - we don't open the PID file in main() anymore - PID file and AF_UNIX socket are opened by pidfile_open() and tap_sock_unix_open() - write_pidfile() becomes pidfile_write() Reported-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Acked-by: Richard W.M. Jones <rjones@redhat.com>
This commit is contained in:
parent
0608ec42f2
commit
765eb0bf16
3 changed files with 13 additions and 7 deletions
|
@ -27,7 +27,7 @@
|
||||||
@{PROC}/@{pid}/net/udp r,
|
@{PROC}/@{pid}/net/udp r,
|
||||||
@{PROC}/@{pid}/net/udp6 r,
|
@{PROC}/@{pid}/net/udp6 r,
|
||||||
|
|
||||||
@{run}/user/@{uid}/** rw, # pasta_open_ns(), main()
|
@{run}/user/@{uid}/** rw, # pasta_open_ns()
|
||||||
|
|
||||||
@{PROC}/[0-9]*/ns/ r, # pasta_netns_quit_init(),
|
@{PROC}/[0-9]*/ns/ r, # pasta_netns_quit_init(),
|
||||||
@{PROC}/[0-9]*/ns/net r, # pasta_wait_for_ns(),
|
@{PROC}/[0-9]*/ns/net r, # pasta_wait_for_ns(),
|
||||||
|
|
|
@ -19,9 +19,12 @@ profile passt /usr/bin/passt{,.avx2} {
|
||||||
include <abstractions/passt>
|
include <abstractions/passt>
|
||||||
|
|
||||||
# Alternatively: include <abstractions/user-tmp>
|
# Alternatively: include <abstractions/user-tmp>
|
||||||
owner /tmp/** w, # tap_sock_unix_init(), pcap(),
|
owner /tmp/** w, # tap_sock_unix_open(),
|
||||||
# write_pidfile(),
|
# tap_sock_unix_init(), pcap(),
|
||||||
|
# pidfile_open(),
|
||||||
|
# pidfile_write(),
|
||||||
# logfile_init()
|
# logfile_init()
|
||||||
|
|
||||||
owner @{HOME}/** w, # pcap(), write_pidfile()
|
owner @{HOME}/** w, # pcap(), pidfile_open(),
|
||||||
|
# pidfile_write()
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,13 @@ profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) {
|
||||||
include <abstractions/pasta>
|
include <abstractions/pasta>
|
||||||
|
|
||||||
# Alternatively: include <abstractions/user-tmp>
|
# Alternatively: include <abstractions/user-tmp>
|
||||||
/tmp/** rw, # tap_sock_unix_init(), pcap(),
|
/tmp/** rw, # tap_sock_unix_open(),
|
||||||
# write_pidfile(),
|
# tap_sock_unix_init(), pcap(),
|
||||||
|
# pidfile_open(),
|
||||||
|
# pidfile_write(),
|
||||||
# logfile_init(),
|
# logfile_init(),
|
||||||
# pasta_open_ns()
|
# pasta_open_ns()
|
||||||
|
|
||||||
owner @{HOME}/** w, # pcap(), write_pidfile()
|
owner @{HOME}/** w, # pcap(), pidfile_open(),
|
||||||
|
# pidfile_write()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue