Everything seems to work fine but saw these log entries:
james being the host and alfred and bailey the guests.
alfred is unconfined so why is this still happening?
bailey is unconfined and specifically allows mounting
Also, why are the logs showing: lxc-container-default for both containers?
Code:
Apr 01 09:53:02 james kernel: [44540.247389] audit: type=1400 audit(1459497182.260:29): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/pstore/" pid=3790 comm="mount" fstype="pstore" srcname="pstore" flags="rw"
Apr 01 09:53:02 james kernel: [44540.249481] audit: type=1400 audit(1459497182.260:30): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/pstore/" pid=3790 comm="mount" fstype="pstore" srcname="pstore" flags="ro"
Apr 01 09:53:02 alfred kernel: [44540.418302] audit: type=1400 audit(1459497182.428:31): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=4034 comm="mount" flags="rw, remount, silent"
Apr 01 09:53:02 alfred kernel: [44540.421142] audit: type=1400 audit(1459497182.432:32): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=4035 comm="mount" flags="rw, remount, relatime"
Apr 01 09:53:02 james kernel: [44540.446470] audit: type=1400 audit(1459497182.456:34): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/lock/" pid=4101 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
Apr 01 09:53:02 alfred kernel: [44540.441307] audit: type=1400 audit(1459497182.452:33): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/" pid=4090 comm="mount" flags="rw, nosuid, noexec, remount, relatime"
Apr 01 09:53:02 james kernel: [44540.452029] audit: type=1400 audit(1459497182.464:35): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/proc/" pid=4108 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
Apr 01 09:53:02 alfred kernel: [44540.457336] audit: type=1400 audit(1459497182.468:36): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/" pid=4116 comm="mount" flags="ro, nosuid, nodev, noexec, remount, relatime"
Apr 01 09:53:02 bailey kernel: [44540.479448] audit: type=1400 audit(1459497182.492:37): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/run/shm/" pid=4182 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"
Apr 01 09:53:02 bailey kernel: [44540.484752] audit: type=1400 audit(1459497182.496:38): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/dev/pts/" pid=4190 comm="mount" flags="rw, nosuid, noexec, remount, relatime"
james being the host and alfred and bailey the guests.
alfred is unconfined so why is this still happening?
Code:
#cat /etc/pve/lxc/100.conf
arch: amd64
cpulimit: 4
cpuunits: 1024
hostname: alfred.ict-consult.co.za
memory: 16384
nameserver: 94.23.250.79 8.8.8.8
net0: bridge=vmbr0,gw=94.23.250.254,hwaddr=02:00:00:71:02:12,ip=51.254.252.80/28,ip6=dhcp,name=eth0,type=veth
onboot: 1
ostype: debian
protection: 1
rootfs: local:100/vm-100-disk-1.raw,size=128G,acl=0,quota=1
searchdomain: ict-consult.co.za
startup: order=1,up=120
swap: 0
lxc.aa_profile: unconfined
bailey is unconfined and specifically allows mounting
Code:
#cat /etc/pve/lxc/102.conf
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: bailey.ict-consult.co.za
memory: 2048
nameserver: 94.23.250.79 8.8.8.8
net0: bridge=vmbr0,gw=94.23.250.254,hwaddr=02:00:00:1e:cf:c3,ip=51.254.252.82/28,ip6=dhcp,name=eth0,type=veth
onboot: 1
ostype: debian
protection: 1
rootfs: local:102/vm-102-disk-1.raw,size=32G,acl=0
searchdomain: ict-consult.co.za
startup: order=2,up=30
swap: 0
lxc.aa_profile: unconfined
lxc.mount.entry: /dev/fuse dev/fuse none bind,create=file 0 0
Also, why are the logs showing: lxc-container-default for both containers?