Add telephony-dongle service. 39/268939/1 accepted/tizen/unified/20220107.120853 submit/tizen/20220106.013141
authorJin-gyu Kim <jin-gyu.kim@samsung.com>
Wed, 5 Jan 2022 22:14:37 +0000 (07:14 +0900)
committerJin-gyu Kim <jin-gyu.kim@samsung.com>
Wed, 5 Jan 2022 22:15:24 +0000 (07:15 +0900)
- Requested by SECSFV-207
- Give cap_sys_module capability with "ei" option to /usr/sbin/insmod

Change-Id: I704059ae5d9d0062e4217f252acda324e6818411

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 c525d431aea09c578400da422edc6de41fd34206..5de3fcda10c253a02432bd2291ed317f28015b2e 100755 (executable)
@@ -939,6 +939,16 @@ if [ -e "/usr/bin/pkginfo-server" ]
 then /usr/sbin/setcap cap_dac_override=ei /usr/bin/pkginfo-server
 fi
 
+# Package              platform/upstream/kmod
+# Date                 Jan 05, 2022
+# Required             /usr/sbin/insmod : cap_sys_module : ei
+# cap_sys_module       To use insmod
+# This is requested by telephony module, to be used in telephony-dongle.service.
+
+if [ -e "/usr/sbin/insmod" ]
+then /usr/sbin/setcap cap_sys_module=ei /usr/sbin/insmod
+fi
+
 # These are not related with the capability, but place here to run in generic-security.post
 # It would be better to run this separately in generic-security.post future.
 /usr/share/security-config/change_permission
index bd97006145787bbcdd6e6fd8ee2c87c390af3856..129c599cab6dfb6c06f7a5be5b4ef5c29b631c31 100755 (executable)
 ;systemd-vconsole-setup.service;root;root;System;
 ;tef-simulator.service;security_fw;security_fw;System::TEF;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
 ;tizenid.service;system_fw;system_fw;System;
index 03bdf5ecb16c5be71c621ec01083e6adf886f565..4a501af4c1811a557bb33180fa97e78a37ebed2f 100755 (executable)
 ;systemd-vconsole-setup.service;root;root;System;
 ;tef-simulator.service;security_fw;security_fw;System::TEF;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
 ;tizenid.service;system_fw;system_fw;System;
index 35f2a528316572b65ec8888fa4f9929cadad2338..9f3eb4db6668d26688dd1053dc4b369f5a9f8136 100755 (executable)
 ;systemd-vconsole-setup.service;root;root;System;
 ;tef-simulator.service;security_fw;security_fw;System::TEF;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
 ;tizenid.service;system_fw;system_fw;System;
index 758946e66e3cc1380c38d92aec039c2ddea7d862..79da72e1cfd30a1b0ed41b40ac62b497e7e32848 100644 (file)
 ;systemd-vconsole-setup.service;root;root;System;
 ;tef-simulator.service;security_fw;security_fw;System::TEF;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-fstrim-user.service;root;root;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
index ab0240907d9b9a0a77bc10a7c848642a1271ffac..6c5445969e1e68373949a68dc91d3b2bbd78d4a3 100644 (file)
 ;systemd-user-sessions.service;root;root;System;
 ;systemd-vconsole-setup.service;root;root;System;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-fstrim-user.service;root;root;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
index 4e2f1523e25d5b23cbcb87ec25944d12dc9ffe9a..eda56a28a118a2ff9ec7106dde1d5ab372e67091 100644 (file)
 ;systemd-user-sessions.service;root;root;System;
 ;systemd-vconsole-setup.service;root;root;System;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-fstrim-user.service;root;root;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
index 845eeadfc91f80b72a8824260e5c8ec5a52bdec7..a8e9764c998a79f1bec1528c6614c57e2acbb125 100644 (file)
 ;systemd-user-sessions.service;root;root;System;
 ;systemd-vconsole-setup.service;root;root;System;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-fstrim-user.service;root;root;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
index 770c1269d6afbd925ec68a2e4d0115a6448f9ab6..979e6a7b09c45a4f0b2871bd7874fb52c42c99c2 100644 (file)
 ;systemd-user-sessions.service;root;root;System;
 ;systemd-vconsole-setup.service;root;root;System;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
 ;tizenid.service;system_fw;system_fw;System;
index af9c6b649d386f0a9ce66c9f2e9409141eb1631a..7452ffc12001af4513460a29088425eca412d0d4 100755 (executable)
 ;systemd-user-sessions.service;root;root;System;
 ;systemd-vconsole-setup.service;root;root;System;
 ;telephony-daemon.service;telephony;telephony;System;
+;telephony-dongle.service;telephony;telephony;System;
 ;tizen-system-env.service;root;root;System;
 ;tizen-theme-manager.service;app_fw;app_fw;System;
 ;tizenid.service;system_fw;system_fw;System;