OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:NamespaceUtils
(Results
1 - 6
of
6
) sorted by null
/external/libchrome/sandbox/linux/services/
namespace_utils.h
18
class SANDBOX_EXPORT
NamespaceUtils
{
49
DISALLOW_IMPLICIT_CONSTRUCTORS(
NamespaceUtils
);
namespace_utils_unittest.cc
23
SANDBOX_TEST(
NamespaceUtils
, KernelSupportsUnprivilegedNamespace) {
26
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(CLONE_NEWUSER);
35
SANDBOX_TEST(
NamespaceUtils
, WriteToIdMapFile) {
44
NamespaceUtils
::KernelSupportsDenySetgroups();
51
RAW_CHECK(
NamespaceUtils
::DenySetgroups());
55
RAW_CHECK(
NamespaceUtils
::WriteToIdMapFile("/proc/self/uid_map", uid));
59
RAW_CHECK(
NamespaceUtils
::WriteToIdMapFile("/proc/self/gid_map", gid));
namespace_utils.cc
36
bool
NamespaceUtils
::WriteToIdMapFile(const char* map_file, generic_id_t id) {
57
bool
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(int type) {
99
bool
NamespaceUtils
::KernelSupportsDenySetgroups() {
104
bool
NamespaceUtils
::DenySetgroups() {
namespace_sandbox.cc
46
NamespaceUtils
::KernelSupportsDenySetgroups()) {}
52
RAW_CHECK(
NamespaceUtils
::DenySetgroups());
54
RAW_CHECK(
NamespaceUtils
::WriteToIdMapFile("/proc/self/uid_map", uid_));
55
RAW_CHECK(
NamespaceUtils
::WriteToIdMapFile("/proc/self/gid_map", gid_));
135
if (
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(ns_type)) {
credentials.cc
299
if (
NamespaceUtils
::KernelSupportsDenySetgroups()) {
300
PCHECK(
NamespaceUtils
::DenySetgroups());
308
PCHECK(
NamespaceUtils
::WriteToIdMapFile(kGidMapFile, gid));
309
PCHECK(
NamespaceUtils
::WriteToIdMapFile(kUidMapFile, uid));
namespace_sandbox_unittest.cc
79
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(CLONE_NEWPID));
81
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(CLONE_NEWNET));
98
NamespaceUtils
::KernelSupportsUnprivilegedNamespace(CLONE_NEWPID));
Completed in 232 milliseconds