From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 2C56B1FF140 for ; Thu, 15 Jan 2026 11:28:40 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4ED3426DB5; Thu, 15 Jan 2026 11:28:39 +0100 (CET) Date: Thu, 15 Jan 2026 11:28:01 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: <20251216180904.270167-1-f.schauer@proxmox.com> <20251216180904.270167-2-f.schauer@proxmox.com> In-Reply-To: <20251216180904.270167-2-f.schauer@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.17.0 (https://github.com/astroidmail/astroid) Message-Id: <1768472872.pfbk42m9xx.astroid@yuna.none> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1768472837193 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.047 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] applied: [PATCH common 1/2] tools: add fchmodat syscall X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" 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 > --- > 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