libbrillo: ScopedMountNamespace: Add CreateFromPath.

It's useful to be able to create ScopedMountNamespace objects from
a path.

BUG=chromium:985492
TEST=Tested with https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1721070

Change-Id: I51cf338f7ce881e33d082cc57afec32fa46a9e36
Reviewed-on: https://chromium-review.googlesource.com/1784126
Tested-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Ready: Jorge Lucangeli Obes <jorgelo@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2
Cr-Mirrored-Commit: b3cba12dde210c1fc3533c3e87426772d8a5c1e2
2 files changed
tree: 2a70cfca0700d2fc2a3eb1d10319d4dba1730295
  1. brillo/
  2. install_attributes/
  3. policy/
  4. BUILD.gn
  5. libpolicy.ver
  6. OWNERS
  7. PRESUBMIT.cfg
  8. README.md
  9. testrunner.cc
README.md

libbrillo: platform utility library

libbrillo is a shared library meant to hold common utility code that we deem useful for platform projects. It supplements the functionality provided by libbase/libchrome since that project, by design, only holds functionality that Chromium (the browser) needs. As a result, this tends to be more OS-centric code.

AOSP Usage

This project is also used by Update Engine which is maintained in AOSP. However, AOSP doesn't use this codebase directly, it maintains its own libbrillo fork.

To help keep the projects in sync, we have a gsubtree set up on our GoB: https://chromium.googlesource.com/chromiumos/platform2/libbrillo/

This allows AOSP to cherry pick or merge changes directly back into their fork.