From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id 03E551FF162
	for <inbox@lore.proxmox.com>; Sat, 22 Mar 2025 16:31:27 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id BAFB03C6DB;
	Sat, 22 Mar 2025 16:31:05 +0100 (CET)
To: pve-devel@lists.proxmox.com
Date: Sun, 23 Mar 2025 00:17:15 +0900
In-Reply-To: <20250322152004.1646886-1-jing@jing.rocks>
References: <20250322152004.1646886-1-jing@jing.rocks>
MIME-Version: 1.0
Message-ID: <mailman.96.1742657463.359.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Jing Luo via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Jing Luo <jing@jing.rocks>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] [PATCH pve-container] tree-wide: change /var/run to /run
Content-Type: multipart/mixed; boundary="===============1518813556390243298=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============1518813556390243298==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <jing@jing.rocks>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by lists.proxmox.com (Postfix) with ESMTPS id 841D7C944D
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:31:03 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 667663C364
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:30:33 +0100 (CET)
Received: from mail-gw3.jing.rocks (mail-gw3.jing.rocks [219.117.250.209])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Sat, 22 Mar 2025 16:30:31 +0100 (CET)
Received: from mail-gw3.jing.rocks (localhost [127.0.0.1])
	by mail-gw3.jing.rocks (Proxmox) with ESMTP id 46E8D16515
	for <pve-devel@lists.proxmox.com>; Sun, 23 Mar 2025 00:20:21 +0900 (JST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jing.rocks; h=cc
	:cc:content-transfer-encoding:date:from:from:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to; s=mail-gw; bh=WPfxmbOUEztEAsXsrS4IJ7CV2/uH1WT2XTqod22dD+g=; b=
	EniPwccWevanRm4WNiNg/8/sK7eZ244aHbF6G/Bqp9PwQZeYcgEP2LybV4D3JuVO
	9RAEeBxFKJwOXhO/Jf7ehsAwMs33TMiLtRcqDry8QljuQYlS8psJehKJ4uyzE30n
	9M7kRPthZv2uKEEyAYZq0PhFw5qe8W/sswJJssXD/3iJ9ZsO/jV7Q7I/N1b/6l4q
	M0H+AAe7jxuOmC8HqRx3uQ0r6OYuAHL5pzoo3A6H62jtszys0mkKN7XW/fEhSFoJ
	/sIma9NtUG9iRbXQ/q8kdX2zc/0GIQyDzDpik5wN41wcvRXU05UX/fpV6v3aPJ31
	aY0aXXEk8ZtBfTZTDIDlHg==
Received: from mail.jing.rocks (mail.jing.rocks [192.168.0.222])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mail-gw3.jing.rocks (Proxmox) with ESMTPS id 4BACC164EC
	for <pve-devel@lists.proxmox.com>; Sun, 23 Mar 2025 00:20:20 +0900 (JST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jing.rocks;
	s=default; t=1742656820;
	bh=hyAx4+p2qJbNQ4GChCo9tSWq5G/Jwp8b66Hj5weBs5Q=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=elQxfTZK7auIXeypoQButUe5AAys1VAZAoXrInlirVisj45HtF8/x9p3JGPVU9/KM
	 feSwJ1Ln5lKG4AXoNXwssT3zUx7Qh/z6LK7iY2YuEMwBJrI6ngBtflDx00QJ2Cj//0
	 MJ+FCdhB+GlK9ckck1tNgqWj8mruPiENK9GhN07DJCowtzcRzNF5w+BrkFh5+kSMRp
	 K2gDKdxoG9h6OpigzXhygJjnUSXMbMl20YAwfwDOoh5nDMGYvVRsxlXjtdz2qc0xey
	 DrMrWPY7tawrbNPoSDykPSGjhuDRFGXl1hy4bhjh27a/BnlR9lNyD9nObA14KkoEP9
	 fOADnd9/RoR2Q==
Received: from X570AM.jing.rocks (X570AM.lan [IPv6:240b:10:f00:1b00::7e82])
	(Authenticated sender: jing@jing.rocks)
	by mail.jing.rocks (Postfix) with ESMTPSA id 45C60381AF;
	Sun, 23 Mar 2025 00:20:20 +0900 (JST)
From: Jing Luo <jing@jing.rocks>
To: pve-devel@lists.proxmox.com
Cc: Jing Luo <jing@jing.rocks>
Subject: [PATCH pve-container] tree-wide: change /var/run to /run
Date: Sun, 23 Mar 2025 00:17:15 +0900
Message-ID: <20250322152004.1646886-8-jing@jing.rocks>
X-Mailer: git-send-email 2.49.0
In-Reply-To: <20250322152004.1646886-1-jing@jing.rocks>
References: <20250322152004.1646886-1-jing@jing.rocks>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
	AWL                     0.000 Adjusted score from AWL reputation of From: address
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
	DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
	DKIM_VALID_AU            -0.1 Message has a valid DKIM or DK signature from author's domain
	DKIM_VALID_EF            -0.1 Message has a valid DKIM or DK signature from envelope-from domain
	DMARC_PASS               -0.1 DMARC pass policy
	KAM_INFOUSMEBIZ          0.75 Prevalent use of .info|.us|.me|.me.uk|.biz|xyz|id|rocks|life domains in spam/malware
	KAM_OTHER_BAD_TLD        0.75 Other untrustworthy TLDs
	SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
	SPF_PASS               -0.001 SPF: sender matches SPF record

"/var/run" is deprecated.

This is to comply with Debian Policy 9.1.4 "/run and /run/lock".
(https://www.debian.org/doc/debian-policy/ch-opersys.html#run-and-run-lock)

Signed-off-by: Jing Luo <jing@jing.rocks>
---
 src/PVE/API2/LXC.pm                     | 6 +++---
 src/test/test-debian-009/etc/passwd     | 4 ++--
 src/test/test-debian-009/etc/passwd.exp | 4 ++--
 src/test/test-debian-014/etc/passwd     | 4 ++--
 src/test/test-debian-014/etc/passwd.exp | 4 ++--
 src/test/test-debian-015/etc/passwd     | 4 ++--
 src/test/test-debian-015/etc/passwd.exp | 4 ++--
 7 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 7cb5122..f0b5909 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -885,7 +885,7 @@ __PACKAGE__->register_method ({
 	my $concmd = PVE::LXC::get_console_command($vmid, $conf, -1);
 
 	my $shcmd = [ '/usr/bin/dtach', '-A',
-		      "/var/run/dtach/vzctlconsole$vmid",
+		      "/run/dtach/vzctlconsole$vmid",
 		      '-r', 'winch', '-z', @$concmd];
 
 	my $realcmd = sub {
@@ -988,7 +988,7 @@ __PACKAGE__->register_method ({
 	my $concmd = PVE::LXC::get_console_command($vmid, $conf, -1);
 
 	my $shcmd = [ '/usr/bin/dtach', '-A',
-		      "/var/run/dtach/vzctlconsole$vmid",
+		      "/run/dtach/vzctlconsole$vmid",
 		      '-r', 'winch', '-z', @$concmd];
 
 	my $realcmd = sub {
@@ -1100,7 +1100,7 @@ __PACKAGE__->register_method ({
 	my $concmd = PVE::LXC::get_console_command($vmid, $conf);
 
 	my $shcmd = ['/usr/bin/dtach', '-A',
-		     "/var/run/dtach/vzctlconsole$vmid",
+		     "/run/dtach/vzctlconsole$vmid",
 		     '-r', 'winch', '-z', @$concmd];
 
 	my $title = "CT $vmid";
diff --git a/src/test/test-debian-009/etc/passwd b/src/test/test-debian-009/etc/passwd
index e505613..fa32363 100644
--- a/src/test/test-debian-009/etc/passwd
+++ b/src/test/test-debian-009/etc/passwd
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
diff --git a/src/test/test-debian-009/etc/passwd.exp b/src/test/test-debian-009/etc/passwd.exp
index e505613..fa32363 100644
--- a/src/test/test-debian-009/etc/passwd.exp
+++ b/src/test/test-debian-009/etc/passwd.exp
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
diff --git a/src/test/test-debian-014/etc/passwd b/src/test/test-debian-014/etc/passwd
index 9fc110f..dd7ed07 100644
--- a/src/test/test-debian-014/etc/passwd
+++ b/src/test/test-debian-014/etc/passwd
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
diff --git a/src/test/test-debian-014/etc/passwd.exp b/src/test/test-debian-014/etc/passwd.exp
index 9fc110f..dd7ed07 100644
--- a/src/test/test-debian-014/etc/passwd.exp
+++ b/src/test/test-debian-014/etc/passwd.exp
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
diff --git a/src/test/test-debian-015/etc/passwd b/src/test/test-debian-015/etc/passwd
index 9fc110f..dd7ed07 100644
--- a/src/test/test-debian-015/etc/passwd
+++ b/src/test/test-debian-015/etc/passwd
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
diff --git a/src/test/test-debian-015/etc/passwd.exp b/src/test/test-debian-015/etc/passwd.exp
index 9fc110f..dd7ed07 100644
--- a/src/test/test-debian-015/etc/passwd.exp
+++ b/src/test/test-debian-015/etc/passwd.exp
@@ -13,9 +13,9 @@ proxy:x:13:13:proxy:/bin:/bin/sh
 www-data:x:33:33:www-data:/var/www:/bin/sh
 backup:x:34:34:backup:/var/backups:/bin/sh
 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
-irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+irc:x:39:39:ircd:/run/ircd:/bin/sh
 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
 postfix:x:101:104::/var/spool/postfix:/bin/false
-sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin
+sshd:x:102:65534::/run/sshd:/usr/sbin/nologin
-- 
2.49.0




--===============1518813556390243298==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============1518813556390243298==--