all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH common/container 0/2] inherit attributes from preexisting directory during mountpoint setup
@ 2025-12-16 18:08 Filip Schauer
  2025-12-16 18:08 ` [pve-devel] [PATCH common 1/2] tools: add fchmodat syscall Filip Schauer
  2025-12-16 18:08 ` [pve-devel] [PATCH container 2/2] mountpoint_insert_staged: inherit attributes if directory already exists Filip Schauer
  0 siblings, 2 replies; 3+ messages in thread
From: Filip Schauer @ 2025-12-16 18:08 UTC (permalink / raw)
  To: pve-devel

Make mount points inherit the uid, gid, and access mode if the directory
already exists in the container file system. This makes setting up mount
points more convenient when attributes different from uid=0, gid=0,
mode=755 are required.

As an example, this ensures that directories like /app/data and
/app/cache in the docker.io/weblate/weblate OCI image retain the correct
permissions when adding mount points over them.

While not explicitly specified by the OCI spec, this matches the
behaviour of implementations such as Docker and Podman.

Also add the fchmodat syscall, which is required to set the access mode
of a file descriptor that was obtained with open_tree.

pve-common:

Filip Schauer (1):
  tools: add fchmodat syscall

 src/PVE/Syscall.pm |  1 +
 src/PVE/Tools.pm   | 11 +++++++++++
 2 files changed, 12 insertions(+)


pve-container:

Filip Schauer (1):
  mountpoint_insert_staged: inherit attributes if directory already
    exists

 src/PVE/LXC.pm | 7 +++++++
 1 file changed, 7 insertions(+)


Summary over all repositories:
  3 files changed, 19 insertions(+), 0 deletions(-)

-- 
Generated by git-murpp 0.6.0


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-16 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-16 18:08 [pve-devel] [PATCH common/container 0/2] inherit attributes from preexisting directory during mountpoint setup Filip Schauer
2025-12-16 18:08 ` [pve-devel] [PATCH common 1/2] tools: add fchmodat syscall Filip Schauer
2025-12-16 18:08 ` [pve-devel] [PATCH container 2/2] mountpoint_insert_staged: inherit attributes if directory already exists Filip Schauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal