blob: c6506f8b12933ca185540e69bad2a1ebc862baf7 [file] [log] [blame]
// Copyright 2017 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 "libcontainer/container.h"
#include <base/logging.h>
namespace libcontainer {
Container::Container(base::StringPiece name, const base::FilePath& rundir)
: container_(container_new(, rundir.value().c_str())) {
// container_new() allocates using std::nothrow, so we need to explicitly
// call abort(2) when allocation fails.
Container::~Container() {
} // namespace libcontainer