Comment on Rootless docker and symlink to docker.sock security issues

groet@feddit.org ⁨1⁩ ⁨day⁩ ago

  1. is there a reason you don’t use podman instead of rootless docker?
  2. can you run patchmon inside of docker and mount the socket to the original path inside of the container?
  3. the symlink has the file permissions of the file it points to. If the socket is owned by a user, so will the symlink, even if you used root/sudo to create the link. (technically the symlink will be owned by root, but the permissions on a symlink are ignored and the permission of the target are used)
  4. as long as you don’t change any permissions on /var/run or on the docker.sock to be more permissive than they are now, there is functionally no difference in security 4.5) If you or someone else on the system tries to run docker with a different user/root, the symlink will likely cause issues

original
Sort:hotnewtop