Android-cuttlefish cvd tool
Namespaces | Functions | Variables
privilege.cpp File Reference
#include "cuttlefish/host/commands/cvdalloc/privilege.h"
#include <fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <optional>
#include <utility>
#include <vector>
#include "absl/log/log.h"
#include "absl/strings/string_view.h"
#include "cuttlefish/posix/stat.h"
#include "cuttlefish/posix/strerror.h"
#include "cuttlefish/result/expect.h"
#include "cuttlefish/result/result_type.h"
Include dependency graph for privilege.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{privilege.cpp}
 

Functions

Result< void > cuttlefish::ValidateCvdallocBinary (absl::string_view path)
 
int cuttlefish::anonymous_namespace{privilege.cpp}::BeginElevatedPrivileges ()
 
int cuttlefish::anonymous_namespace{privilege.cpp}::DropPrivileges (uid_t orig)
 
std::vector< char * > cuttlefish::anonymous_namespace{privilege.cpp}::CopyEnv ()
 
void cuttlefish::anonymous_namespace{privilege.cpp}::RestoreEnv (std::vector< char * > env)
 

Variables

char ** environ
 
constexpr char cuttlefish::anonymous_namespace{privilege.cpp}::kTrustedPath [] = "/usr/sbin:/usr/bin:/sbin:/bin"
 

Variable Documentation

◆ environ

char** environ
extern