I am hoping to rely on the wisdom of the group to help with an item we are having issues with since upgrading our OpenVZ container to LXC on a 4.0 system. One of them requires capabilities applied to a binary so that it is able to open ports 80 / 443 for web services but still run as an unprivileged account. The specific command issued during the install is:
setcap "CAP_NET_BIND_SERVICE,CAP_NET_BROADCAST+ep" "/usr/local/bin/myprogram"
It seems that the capabilities are setup in the /usr/share/lxc/config folder through a number of conf files. I would prefer to only allow this in the single container needing it and wonder how to go about overriding this for it only. Any input would be appreciated. Thanks!
setcap "CAP_NET_BIND_SERVICE,CAP_NET_BROADCAST+ep" "/usr/local/bin/myprogram"
It seems that the capabilities are setup in the /usr/share/lxc/config folder through a number of conf files. I would prefer to only allow this in the single container needing it and wonder how to go about overriding this for it only. Any input would be appreciated. Thanks!