Modify the permission of token file 13/182713/5 accepted/tizen/4.0/unified/20180629.000202 submit/tizen_4.0/20180628.060131
authorseolheui kim <s414.kim@samsung.com>
Wed, 27 Jun 2018 08:59:41 +0000 (17:59 +0900)
committerseolheui kim <s414.kim@samsung.com>
Thu, 28 Jun 2018 05:49:21 +0000 (14:49 +0900)
- fota is running as system_share user and group.

Change-Id: Ia79cdf471b0e82a0773e8af9f96dab6aa907095c
Signed-off-by: seolheui kim <s414.kim@samsung.com>
packaging/ode.spec
server/systemd/ode.service.in
server/upgrade-support.cpp

index 3fbc762..3ba6cd9 100755 (executable)
@@ -32,7 +32,7 @@ The ode package provides a daemon which is responsible for encrypting/decryption
 %{_unitdir}/ode.service
 %{_unitdir}/multi-user.target.wants/ode.service
 %attr(700,root,root) %{TZ_SYS_SBIN}/ode-admin-cli
-%attr(700,root,root) %{TZ_SYS_SBIN}/ode-fota
+%attr(750,root,system_share) %{TZ_SYS_SBIN}/ode-fota
 %{_datadir}/%{name}
 %dir %{key_storage_plugin_dir}
 
index 85e19c6..02aca38 100644 (file)
@@ -4,6 +4,7 @@ Before=deviced.service
 
 [Service]
 Type=simple
+Group=system_share
 SmackProcessLabel=System::Privileged
 ExecStart=@BIN_DIR@/@PROJECT_NAME@d
 Restart=on-failure
index 11c49b8..35898cf 100644 (file)
@@ -184,7 +184,7 @@ void writeToken(runtime::File &file, const BinaryData& token)
 {
        size_t tokenSize(token.size());
 
-       file.create(0600);
+       file.create(0640);
 
        file.write(&tokenSize, sizeof(tokenSize));
        file.write(token.data(), token.size());