From 690ca1338e7718b4c48e762f257431bfe6208507 Mon Sep 17 00:00:00 2001 From: shuaijie Date: Thu, 28 Nov 2024 13:17:47 +0800 Subject: [PATCH] fix: [security] cancel cap_dac_read_search cancel cap_dac_read_search Log: cancel cap_dac_read_search Bug: https://pms.uniontech.com/task-view-365257.html (cherry picked from commit 8aa68ab856430a32ba0f35a6519370d8c7f459b7) --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index f704125c..fc7b55df 100644 --- a/debian/postinst +++ b/debian/postinst @@ -3,7 +3,7 @@ set -e if [ "$1" = configure ]; then if command -v setcap >/dev/null; then - if setcap cap_net_raw,cap_dac_read_search+ep /usr/bin/deepin-system-monitor; then + if setcap cap_net_raw+ep /usr/bin/deepin-system-monitor; then chmod u-s /usr/bin/deepin-system-monitor else echo "Setcap failed, falling back to setuid" >&2