MCPcopy Create free account
hub / github.com/apache/impala / CheckProfileAccess

Function CheckProfileAccess

be/src/util/auth-util.cc:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78Status CheckProfileAccess(const string& user, const string& effective_user,
79 bool has_access) {
80 if (user.empty() || (user == effective_user && has_access)) return Status::OK();
81 stringstream ss;
82 ss << "User " << user << " is not authorized to access the runtime profile or "
83 << "execution summary.";
84 return Status(ss.str());
85}
86
87// Replaces _HOST with the hostname if it occurs in the principal string.
88Status ReplacePrincipalHostFormat(string* out_principal) {

Callers 2

GetExecSummaryMethod · 0.85

Calls 4

OKFunction · 0.85
StatusClass · 0.70
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected