From 10c9cc27de56b8aed8de7017a34f552e966ade4db4d35a5965c43201f289b854 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Sun, 29 Aug 2021 08:46:02 +0000 Subject: [PATCH] Accepting request 914806 from X11:Deepin:Factory - Fix a security issue for deepin-daemon-dbus-installer and deepin-daemon-polkit-installer.in, change tmp dir to /root/.cache OBS-URL: https://build.opensuse.org/request/show/914806 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=16 --- deepin-daemon-dbus-installer.in | 4 ++-- deepin-daemon-polkit-installer.in | 4 ++-- deepin-daemon.changes | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/deepin-daemon-dbus-installer.in b/deepin-daemon-dbus-installer.in index 2a500b2..51d5988 100644 --- a/deepin-daemon-dbus-installer.in +++ b/deepin-daemon-dbus-installer.in @@ -1,6 +1,6 @@ #!/bin/bash # Name: Deepin DBus profiles installer -# Version: 1.0 +# Version: 1.1 # Description: On openSUSE, deepin-daemon does not install dbus profiles by default # for security. The tool can help users to install these profiles for getting the # full features of Deepin Desktop, if user does not care security. @@ -36,7 +36,7 @@ if [ "$ANSWER" = "n" ] || [ "$ANSWER" = "N" ] || [ "$ANSWER" = "no" ] || [ "$ANS exit 1 fi -SYSTEM_TMP=/tmp +SYSTEM_TMP=/root/.cache TMP_DIR=$SYSTEM_TMP/deepin-daemon-dbus pushd /usr/share/dbus-1/system.d/ &>/dev/null diff --git a/deepin-daemon-polkit-installer.in b/deepin-daemon-polkit-installer.in index dabf4aa..5ad6144 100644 --- a/deepin-daemon-polkit-installer.in +++ b/deepin-daemon-polkit-installer.in @@ -1,6 +1,6 @@ #!/bin/bash # Name: Deepin polkit profiles installer -# Version: 1.0 +# Version: 1.1 # Description: On openSUSE, deepin-daemon does not install polkit profiles by default # for security. The tool can help users to install these profiles for getting the # full features of Deepin Desktop, if user does not care security. @@ -36,7 +36,7 @@ if [ "$ANSWER" = "n" ] || [ "$ANSWER" = "N" ] || [ "$ANSWER" = "no" ] || [ "$ANS exit 1 fi -SYSTEM_TMP=/tmp +SYSTEM_TMP=/root/.cache TMP_DIR=$SYSTEM_TMP/deepin-daemon-polkit pushd /usr/share/polkit-1/actions/ &>/dev/null diff --git a/deepin-daemon.changes b/deepin-daemon.changes index 2f46848..782009d 100644 --- a/deepin-daemon.changes +++ b/deepin-daemon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 28 14:32:55 UTC 2021 - Hillwood Yang + +- Fix a security issue for deepin-daemon-dbus-installer and + deepin-daemon-polkit-installer.in, change tmp dir to /root/.cache + ------------------------------------------------------------------- Sat Jul 24 07:59:10 UTC 2021 - Hillwood Yang