cant access mountpoint folders in lxc container via smb etc.

n1ete

New Member
Feb 26, 2017
16
1
1
40
got problem with setting up an containerized samba test server on centos :
everything is up and running and i can access smb shares from clients as long as the folder is not pointing on a folder created on a mountpoint.
for example:

lxc.conf
mp0:/volume,mp=/mnt/data

in the container i create a folder
mkdir -p /mnt/data/share
chmod -R 775 /mnt/data/share
chown -R nobody:nobody /mnt/data/share

as soon as i want to access the share from a client i get and "permission denied"

#if i do the same with and folder for instance
mkdir -p /samba/share

its working!
the mount points are pointing at my zfs storage

help appreciated
 
still on to this... some logs when the cotainer starts:
could it be related?
  • May 10 18:51:21 proxhost audit[15361]: AVC apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-cgns" name="/" pid=15361 comm="mount" flags="rw, remount"
  • May 10 18:51:21 proxhost kernel: audit: type=1400 audit(): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-cgns" name="/" pid=15361 comm="mount" flags="rw, remount"