blob: 32496b1afc713de3f9e09e3f9441c1563927d189 [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/check.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