public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: Filip Schauer <f.schauer@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [pve-devel] [PATCH common/container 0/2] inherit attributes from preexisting directory during mountpoint setup
Date: Wed, 17 Dec 2025 14:17:27 +0100	[thread overview]
Message-ID: <s8oike58cyg.fsf@proxmox.com> (raw)
In-Reply-To: <20251216180904.270167-1-f.schauer@proxmox.com> (Filip Schauer's message of "Tue, 16 Dec 2025 19:08:50 +0100")

Filip Schauer <f.schauer@proxmox.com> writes:

> 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(-)

When used in conjunction with [1] this allows to run the weblate/weblate
image without errors. I also tested this with syncthing/syncthing and it
looks good.

[1] https://lore.proxmox.com/all/20251215174203.267293-1-f.schauer@proxmox.com/

Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>

-- 
Maximiliano


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


      parent reply	other threads:[~2025-12-17 13:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2025-12-17 13:17 ` Maximiliano Sandoval [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s8oike58cyg.fsf@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=f.schauer@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal