blob: 12cf45a3619703c3e8a9224b77131bdae9ae9802 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <base/files/file_path.h>
#include <base/logging.h>
#include <brillo/syslog_logging.h>
#include "cryptohome/crypto.h"
#include "cryptohome/filesystem_layout.h"
#include "cryptohome/platform.h"
int main(int argc, char** argv) {
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderr);
// Read the file before we daemonize so it can be deleted as soon as we exit.
cryptohome::Platform platform;
cryptohome::Crypto crypto(&platform);
if (!cryptohome::InitializeFilesystemLayout(
&platform, &crypto, base::FilePath(cryptohome::kShadowRoot),
nullptr)) {
return 1;
return 0;