Revert "Add smackfsroot, smackfsdef in mount options of ecryptfs" 96/143496/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 9 Aug 2017 07:13:09 +0000 (16:13 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Thu, 10 Aug 2017 06:41:32 +0000 (15:41 +0900)
This reverts commit 8f7f71bda2fd81ff50b3e01e347c2fe2bb887c31.
Change-Id: I4bb2a2f6dcde3f0769232a0478f53abe6e3a3c6e

server/engine/encryption/ecryptfs-engine.cpp
server/systemd/ode.service.in

index 682bbdd..e0c5371 100644 (file)
@@ -303,7 +303,6 @@ void ecryptfsMount(const std::string &source, const std::string &destination, co
 
        mountOption = "ecryptfs_passthrough"
                ",ecryptfs_cipher=" CIPHER_MODE
-               ",smackfsroot=*,smackfsdef=*"
                ",ecryptfs_sig=" + std::string((char *)payload.token.password.signature) +
                ",ecryptfs_key_bytes=" + std::to_string(payload.token.password.sessionKeyEncryptionKeySize);
 
index 85e19c6..2080c19 100644 (file)
@@ -4,10 +4,11 @@ Before=deviced.service
 
 [Service]
 Type=simple
-SmackProcessLabel=System::Privileged
+SmackProcessLabel=System
 ExecStart=@BIN_DIR@/@PROJECT_NAME@d
 Restart=on-failure
 ExecReload=/bin/kill -HUP $MAINPID
+CapabilityBoundingSet=~CAP_MAC_ADMIN
 CapabilityBoundingSet=~CAP_MAC_OVERRIDE
 EnvironmentFile=/run/tizen-system-env
 EnvironmentFile=/run/xdg-root-env