public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: [pve-devel] applied: [PATCH common 1/2] tools: add fchmodat syscall
Date: Thu, 15 Jan 2026 11:28:01 +0100	[thread overview]
Message-ID: <1768472872.pfbk42m9xx.astroid@yuna.none> (raw)
In-Reply-To: <20251216180904.270167-2-f.schauer@proxmox.com>

thanks!

On December 16, 2025 7:08 pm, Filip Schauer wrote:
> The fchmodat syscall changes the mode of a file relative to a file
> descriptor.
> 
> Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
> ---
>  src/PVE/Syscall.pm |  1 +
>  src/PVE/Tools.pm   | 11 +++++++++++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/src/PVE/Syscall.pm b/src/PVE/Syscall.pm
> index 68e16fe..606cc56 100644
> --- a/src/PVE/Syscall.pm
> +++ b/src/PVE/Syscall.pm
> @@ -22,6 +22,7 @@ BEGIN {
>          setresuid => &SYS_setresuid,
>          fallocate => &SYS_fallocate,
>          fchownat => &SYS_fchownat,
> +        fchmodat => &SYS_fchmodat,
>          mount => &SYS_mount,
>          renameat2 => &SYS_renameat2,
>          open_tree => &SYS_open_tree,
> diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
> index 3c6f2fb..a7bb3da 100644
> --- a/src/PVE/Tools.pm
> +++ b/src/PVE/Tools.pm
> @@ -1505,6 +1505,17 @@ sub fchownat($$$$$) {
>      ) == 0;
>  }
>  
> +sub fchmodat($$$$) {
> +    my ($dirfd, $pathname, $mode, $flags) = @_;
> +    return syscall(
> +        PVE::Syscall::fchmodat,
> +        int($dirfd),
> +        $pathname,
> +        int($mode),
> +        int($flags),
> +    ) == 0;
> +}
> +
>  my $salt_starter = time();
>  
>  sub encrypt_pw {
> -- 
> 2.47.3
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 


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


  reply	other threads:[~2026-01-15 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2026-01-15 10:28   ` Fabian Grünbichler [this message]
2025-12-16 18:08 ` [pve-devel] [PATCH container 2/2] mountpoint_insert_staged: inherit attributes if directory already exists Filip Schauer
2026-01-15 12:58   ` [pve-devel] applied: " Fabian Grünbichler
2025-12-17 13:17 ` [pve-devel] [PATCH common/container 0/2] inherit attributes from preexisting directory during mountpoint setup Maximiliano Sandoval

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=1768472872.pfbk42m9xx.astroid@yuna.none \
    --to=f.gruenbichler@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