From f738e42fae50136479e5054c65eb968408978ef5 Mon Sep 17 00:00:00 2001 From: lichenggang Date: Thu, 21 May 2026 17:43:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E5=B0=86=20/var/local?= =?UTF-8?q?=20=E8=AE=BE=E4=B8=BA=20root:root=20=E5=92=8C=20755=20=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make /var/local to be root:root and 755 by default on new installs. 跟随上游 13.7 版本,缺省使得 /var/local 是 root:root 755,去掉其 sgid 权限 Log: 删除 2775-dirs 及 rules 中 var/local 相关 sgid 权限设置 Influence: 新安装系统的 /var/local 目录权限 Co-Authored-By: Claude Opus 4.7 --- debian/2775-dirs | 1 - debian/changelog | 6 ++++++ debian/rules | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 debian/2775-dirs diff --git a/debian/2775-dirs b/debian/2775-dirs deleted file mode 100644 index ad85adc..0000000 --- a/debian/2775-dirs +++ /dev/null @@ -1 +0,0 @@ -var/local diff --git a/debian/changelog b/debian/changelog index 3d02220..5890ea8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +base-files (25-6deepin5) unstable; urgency=medium + + * Make /var/local to be root:root and 755 by default on new installs. + + -- xinpeng.wang Thu, 21 May 2026 16:23:08 +0800 + base-files (25-6deepin4) unstable; urgency=medium * Delete the link/lib64 if the/etc/lib64 directory does not exist. diff --git a/debian/rules b/debian/rules index 17ad36f..18fbe88 100755 --- a/debian/rules +++ b/debian/rules @@ -71,10 +71,8 @@ override_dh_compress: override_dh_fixperms: dh_fixperms - cd debian/base-files && chown root:staff var/local cd debian/base-files && chmod 755 `find . -type d` cd debian/base-files && chmod 1777 `cat ../1777-dirs` - cd debian/base-files && chmod 2775 `cat ../2775-dirs` cd debian/base-files && chmod 700 root override_dh_installdeb: