Add ramdisk-flush service. 85/242385/1 accepted/tizen/unified/20200828.121616 submit/tizen/20200826.073249
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 26 Aug 2020 06:42:47 +0000 (06:42 +0000)
committerjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 26 Aug 2020 06:42:50 +0000 (06:42 +0000)
- Add cap_sys_admin to /usr/sbin/blockdev

Change-Id: Iab2897f172d8ab93114696a07861ff7496b2f828

config/set_capability
test/new_service_test/emulator/common/systemd_service.list
test/new_service_test/emulator/iot/systemd_service.list
test/new_service_test/emulator/mobile/systemd_service.list
test/new_service_test/emulator/wearable/systemd_service.list
test/new_service_test/target/common/systemd_service.list
test/new_service_test/target/iot/systemd_service.list
test/new_service_test/target/mobile/systemd_service.list
test/new_service_test/target/tv/systemd_service.list
test/new_service_test/target/wearable/systemd_service.list

index ebccc7e9d96a64bc540afe52a14ae3dbe589531e..0478a00e74bfae8e8659975b1c6e44783fcde804 100755 (executable)
@@ -846,6 +846,14 @@ if [ -e "/usr/bin/peripheral-bus" ]
 then /usr/sbin/setcap cap_dac_override=ei /usr/bin/peripheral-bus
 fi
 
+# Package              platform/upstream/util-linux
+# Date                  Aug 24, 2020
+# Required             /usr/sbin/blockdev : cap_sys_admin : ei
+# cap_sys_admin                To flush memory
+
+if [ -e "/usr/sbin/blockdev" ]
+then /usr/sbin/setcap cap_sys_admin=ei /usr/sbin/blockdev
+fi
 
 # TODO: MOVE TO OTHER SCRIPT OR REMOVE
 # Requested by sooyeon.kim@samsung.com (.voice) and dalton.lee@samsung.com (.multiassistant)
index d9839a7e1c32369a01462dfa15dab6296f4dfac2..79c7538e163dd4bb4c6a046482a2f1f3e9c0e934 100755 (executable)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index d9839a7e1c32369a01462dfa15dab6296f4dfac2..79c7538e163dd4bb4c6a046482a2f1f3e9c0e934 100755 (executable)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index d9839a7e1c32369a01462dfa15dab6296f4dfac2..79c7538e163dd4bb4c6a046482a2f1f3e9c0e934 100755 (executable)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index c1a2eb145acb214e61e45fdc44f9035a8b327c31..f4aa934da190be10adb32110d7bc96d6119835ee 100644 (file)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index e03e656a2591b8c077c1a4762ba69a1500ac7a38..75e2c72fe134e0f150d1752f9d682d9a1d0318c6 100644 (file)
 ;radio-bt-off.service;network_fw;network_fw;System;
 ;radio-bt-on.service;network_fw;network_fw;System;
 ;radio-bt-on-stop.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index 063cc38758bb2acb099acb0e9168f782f7d637c7..f814a1123e63c33101f39640a1b4d785394cced3 100644 (file)
 ;radio-bt-off.service;network_fw;network_fw;System;
 ;radio-bt-on.service;network_fw;network_fw;System;
 ;radio-bt-on-stop.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index 14ab5041655921aeb5f454cfdc9b3c0603ceefce..78c74b21dd098933e48833ab241fde778ca5c6a3 100644 (file)
 ;radio-bt-off.service;network_fw;network_fw;System;
 ;radio-bt-on.service;network_fw;network_fw;System;
 ;radio-bt-on-stop.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index 1613cc44251b09aa8ec29ce40a05fb4bbc9b35da..aabcf02f861bc16d3b152d8c76cc6bb1f2e6bd93 100644 (file)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;
index ed150d7c537cd36e0352dcf7908df8715fb7060f..9ba361cdf8909769a3c710c634467c0d3e695692 100755 (executable)
 ;pulseaudio.service;root;root;System;
 ;pushd.service;service_fw;service_fw;System;
 ;quotaon.service;root;root;System;
+;ramdisk-flush.service;system_fw;disk;System;
 ;rescue.service;root;root;System;
 ;resize2fs@.service;root;root;System;
 ;resourced.service;root;root;System;