Sharing network namespace

I understand using the option --net:container:some_container one can create a new container and give access to an existing containers network namespace. Is there a way to prevent another container from sharing a specific containers’ network name space through SELinux or any other method.