Allow access to the progress file 85/260785/5
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 1 Jul 2021 13:52:43 +0000 (15:52 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 30 Jul 2021 12:25:15 +0000 (14:25 +0200)
This is needed to automatic validation of checkpont & restore procedure.

Change-Id: I72f6607b92e6612f06430c6e7a52259053e577f8

upgrade/update.sh.in

index 4339f95..747b4bc 100755 (executable)
@@ -41,6 +41,9 @@ PROGRESS_INIT()
        mkdir -p ${PROGRESS_DIR}
        echo "$1" > ${PROGRESS_DIR}/total
        echo "0" > ${PROGRESS_DIR}/progress
+       chsmack -a _ ${PROGRESS_DIR}
+       chsmack -a _ ${PROGRESS_DIR}/total
+       chsmack -a _ ${PROGRESS_DIR}/progress
 
        # if GUI is available, run the GUI
        if [ -e "/usr/bin/rw-update-ani" ]; then