Conversation
|
@edsantiago PTAL |
|
Will this lead to warnings? I see this in if options.Overlay.SkipMountHome != "" || options.SkipMountHome != "" {
logrus.Warn("skip_mount_home option is no longer supported, ignoring option")
}And, I realize this is a long shot, but would it make sense to give the option a positive name ( |
|
OBTW the reason I found that was in looking for code that would actually trigger based on |
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Certain workloads, we would like to eliminate the mounting of containers-storage as private. Running containers within containers for example. This looks like it was accidently removed in the past, since there was still partial implementation. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
|
@edsantiago Thanks, I don't think I should change the name since there is some history, although I do agree that double negative names is difficult to comprehend. Thanks for finding my PR, it made it easier to revert. Now that we found an actual use case for the change. |
|
@edsantiago I just attempted the test for run_commands.go with this patch and the storage.conf set to skip, and podman ran successfully. |
|
I've added this feature and then removed it. It was meant for a different reason (i.e. allow deduplication via ostree hard links). It is a system-wide configuration and it affects every container, and I think it is also expensive to carry all these mounts in all the mount namespaces when there are many containers. What use case are we trying to fix with it? |
|
This is blowing up podman within a container without SYS_ADMIN privs. Just executing If we don't skip the mount, then every podman command will not execute the mount and require to join the user namespace or blow up without SYS_ADMIN privs. |
|
This potentially could fix |
|
ok then I guess it is fine to address it with LGTM |
|
What I don't understand though is why this is not hitting everyone? If I run rootless podman, it either does not check to see if ~/.local/share/containers/storage is a mount point or just does not go through this code. |
edsantiago
left a comment
There was a problem hiding this comment.
LGTM, thanks for following up with the rest of the implementation and with tests
Certain workloads, we would like to eliminate the mounting of containers-storage as private.
Running containers within containers for example.
This looks like it was accidently removed in the past, since there was still partial
implementation.
Signed-off-by: Daniel J Walsh dwalsh@redhat.com