Fix : Bluetooth log is not removed on user binary 93/184593/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Tue, 26 Sep 2017 07:52:06 +0000 (16:52 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Thu, 19 Jul 2018 05:50:49 +0000 (14:50 +0900)
[Problem] Bluetooth log is not deleted on user binary.

[Cause & Measure] Directory owner / group is modified manually. It
 causes inconsistency with system setting. The base directory which is
 passed from dump daemon has setuid bit. So the files and directories
 created by bluetooth script have the same group id to the base
 directory. So bluetooth script doesn't need to change ownership of
 files and directories. This patch removes chown part from script and
 adds write permission to group.

[Checking Method] *#9900# on User binary

Change-Id: Ibfde6fd7a37483dcdd3b0c4f8872dbb436095870

bluetooth_log_dump.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 40d0403..3ed38c6
@@ -4,14 +4,12 @@
 #    bluetooth
 #--------------------------------------
 
-CHOWN="/bin/chown"
-
 BLUETOOTH_DEBUG=${1}/bluetooth
 PREV_PWD=${PWD}
 BT_DATA_DIR=/var/lib/bluetooth
 
-mkdir -p ${BLUETOOTH_DEBUG}
-${CHOWN} 551:551 ${BLUETOOTH_DEBUG}
+/bin/mkdir -p ${BLUETOOTH_DEBUG}
+/bin/chmod g+w ${BLUETOOTH_DEBUG}
 
 if [ -e ${BT_DATA_DIR} ]
 then