I want to setup a Samba file server in an LXC container.
I found that it works perfectly fine when I use a privileged container. However, I am unsure if it is a good idea to use a privileged container.
I could sleep well better if I used a unprivileged container, but using the exactly same configuration, I cannot make it work in unprivileged container. On the Proxmox VE I get an "AppArmor denied" in the log dmesg whenever I want to connect to the Samba file server.
So following questions:
a) is it a good idea to use a privileged container or is this a bad practice?
b) what security problems could I run into when using a privileged container?
c) is it somehow possible to configure a unprivileged container such that the Samba file server works fine? I read on this forum a couple times that people have done this, but I cannot figure out what config they used, obviously some AppArmor profile needs to be configured for the container to work, but I have no experience with this.
Thanks for any hints!
I found that it works perfectly fine when I use a privileged container. However, I am unsure if it is a good idea to use a privileged container.
I could sleep well better if I used a unprivileged container, but using the exactly same configuration, I cannot make it work in unprivileged container. On the Proxmox VE I get an "AppArmor denied" in the log dmesg whenever I want to connect to the Samba file server.
So following questions:
a) is it a good idea to use a privileged container or is this a bad practice?
b) what security problems could I run into when using a privileged container?
c) is it somehow possible to configure a unprivileged container such that the Samba file server works fine? I read on this forum a couple times that people have done this, but I cannot figure out what config they used, obviously some AppArmor profile needs to be configured for the container to work, but I have no experience with this.
Thanks for any hints!