1 Star 0 Fork 19

yaokai13/dpkg

forked from src-openEuler/dpkg 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dpkg-log-Change-logfile-permission-to-satisfy-with-s.patch 973 Bytes
一键复制 编辑 原始数据 按行查看 历史
HukunaMatata 提交于 2020-02-18 16:48 . Package init
From 5ee4bdf24d9c61c42f781a89e09584468386fa02 Mon Sep 17 00:00:00 2001
From: zhengchuan <zhengchuan@huawei.com>
Date: Fri, 2 Aug 2019 17:28:53 +0800
Subject: [PATCH] dpkg log: Change logfile permission to satisfy with safty
---
debian/dpkg.logrotate | 2 +-
debian/dpkg.postinst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/dpkg.logrotate b/debian/dpkg.logrotate
index cf36f08..c57052b 100644
--- a/debian/dpkg.logrotate
+++ b/debian/dpkg.logrotate
@@ -5,5 +5,5 @@
delaycompress
missingok
notifempty
- create 644 root root
+ create 640 root root
}
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 9771d7f..674e0fd 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -19,7 +19,7 @@ create_database() {
create_logfile() {
logfile=/var/log/dpkg.log
touch $logfile
- chmod 644 $logfile
+ chmod 640 $logfile
chown root:root $logfile 2>/dev/null || chown 0:0 $logfile
}
--
1.7.12.4
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yaokai13/dpkg.git
git@gitee.com:yaokai13/dpkg.git
yaokai13
dpkg
dpkg
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385