Fix wrong lazy mount files. 98/184798/3
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 23 Jul 2018 07:31:30 +0000 (16:31 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Mon, 23 Jul 2018 07:54:20 +0000 (16:54 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I47ea4b06de957f4df879f85007eb583176bf56ec
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
server/internal-encryption.cpp

index ef38a5f..744ae85 100644 (file)
@@ -291,8 +291,7 @@ void unmountInternalStorage(const std::string& source)
 
 }
 
-InternalEncryptionServer::InternalEncryptionServer(ServerContext& srv,
-                                                                                                  KeyServer& key) :
+InternalEncryptionServer::InternalEncryptionServer(ServerContext& srv, KeyServer& key) :
        server(srv),
        keyServer(key)
 {
@@ -359,8 +358,7 @@ int InternalEncryptionServer::mount()
 
                server.notify("InternalEncryptionServer::mount");
 
-               runtime::File("/tmp/.lazy_mount").create(O_WRONLY);
-               runtime::File("/tmp/.unlock_mnt").create(O_WRONLY);
+               runtime::File("/run/.unlock_mnt").create(O_WRONLY);
        } catch (runtime::Exception &e) {
                ERROR(SINK, "Mount failed: " + std::string(e.what()));
                return error::Unknown;