From 7813938d17dca78cc6a03ee4ba495b5230042874 Mon Sep 17 00:00:00 2001 From: Simon Poirier Date: Fri, 14 Oct 2022 19:29:32 -0400 Subject: [PATCH] fix: add apparmor ipc feature to the chroot --- live-build/apparmor/generic/caps/mask | 2 +- live-build/apparmor/generic/ipc/posix_mqueue | 1 + live-build/apparmor/generic/namespaces/mask | 1 + live-build/apparmor/generic/network/af_mask | 2 +- live-build/apparmor/generic/network_v8/af_mask | 2 +- live-build/apparmor/generic/policy/outofband | 1 + live-build/apparmor/generic/policy/versions/v9 | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 live-build/apparmor/generic/ipc/posix_mqueue create mode 100644 live-build/apparmor/generic/namespaces/mask create mode 100644 live-build/apparmor/generic/policy/outofband create mode 100644 live-build/apparmor/generic/policy/versions/v9 diff --git a/live-build/apparmor/generic/caps/mask b/live-build/apparmor/generic/caps/mask index 1a8d13ec..1bfa8eaf 100644 --- a/live-build/apparmor/generic/caps/mask +++ b/live-build/apparmor/generic/caps/mask @@ -1 +1 @@ -chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap mac_override mac_admin syslog wake_alarm block_suspend audit_read +chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap mac_override mac_admin syslog wake_alarm block_suspend audit_read perfmon bpf checkpoint_restore diff --git a/live-build/apparmor/generic/ipc/posix_mqueue b/live-build/apparmor/generic/ipc/posix_mqueue new file mode 100644 index 00000000..c20f9f93 --- /dev/null +++ b/live-build/apparmor/generic/ipc/posix_mqueue @@ -0,0 +1 @@ +create read write open delete setattr getattr diff --git a/live-build/apparmor/generic/namespaces/mask b/live-build/apparmor/generic/namespaces/mask new file mode 100644 index 00000000..b0faec29 --- /dev/null +++ b/live-build/apparmor/generic/namespaces/mask @@ -0,0 +1 @@ +userns_create diff --git a/live-build/apparmor/generic/network/af_mask b/live-build/apparmor/generic/network/af_mask index 503289e7..d39f5b89 100644 --- a/live-build/apparmor/generic/network/af_mask +++ b/live-build/apparmor/generic/network/af_mask @@ -1 +1 @@ -unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp +unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp mctp diff --git a/live-build/apparmor/generic/network_v8/af_mask b/live-build/apparmor/generic/network_v8/af_mask index 503289e7..d39f5b89 100644 --- a/live-build/apparmor/generic/network_v8/af_mask +++ b/live-build/apparmor/generic/network_v8/af_mask @@ -1 +1 @@ -unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp +unspec unix inet ax25 ipx appletalk netrom bridge atmpvc x25 inet6 rose netbeui security key netlink packet ash econet atmsvc rds sna irda pppox wanpipe llc ib mpls can tipc bluetooth iucv rxrpc isdn phonet ieee802154 caif alg nfc vsock kcm qipcrtr smc xdp mctp diff --git a/live-build/apparmor/generic/policy/outofband b/live-build/apparmor/generic/policy/outofband new file mode 100644 index 00000000..2180fce5 --- /dev/null +++ b/live-build/apparmor/generic/policy/outofband @@ -0,0 +1 @@ +0x000001 diff --git a/live-build/apparmor/generic/policy/versions/v9 b/live-build/apparmor/generic/policy/versions/v9 new file mode 100644 index 00000000..7cfab5b0 --- /dev/null +++ b/live-build/apparmor/generic/policy/versions/v9 @@ -0,0 +1 @@ +yes