Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: trunk/src/sandbox/linux/services/credentials.h

Issue 54463008: Revert 232280 "Linux: add a Credentials class to handle Linux ca..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/sandbox/linux/services/credentials.h
===================================================================
--- trunk/src/sandbox/linux/services/credentials.h (revision 232280)
+++ trunk/src/sandbox/linux/services/credentials.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SANDBOX_LINUX_SERVICES_CREDENTIALS_H_
-#define SANDBOX_LINUX_SERVICES_CREDENTIALS_H_
-
-#include "build/build_config.h"
-// Link errors are tedious to track, raise a compile-time error instead.
-#if defined(OS_ANDROID)
-#error "Android is not supported."
-#endif // defined(OS_ANDROID).
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace sandbox {
-
-// This class should be used to manipulate the current process' credentials.
-// It is currently a stub used to manipulate POSIX.1e capabilities as
-// implemented by the Linux kernel.
-class Credentials {
- public:
- Credentials();
- ~Credentials();
-
- // Drop all capabilities in the effective, inheritable and permitted sets for
- // the current process.
- void DropAllCapabilities();
- // Return true iff there is any capability in any of the capabilities sets
- // of the current process.
- bool HasAnyCapability();
- // Returns the capabilities of the current process in textual form, as
- // documented in libcap2's cap_to_text(3). This is mostly useful for
- // debugging and tests.
- scoped_ptr<std::string> GetCurrentCapString();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Credentials);
-};
-
-} // namespace sandbox.
-
-#endif // SANDBOX_LINUX_SERVICES_CREDENTIALS_H_
« no previous file with comments | « trunk/src/sandbox/linux/sandbox_linux_test_sources.gypi ('k') | trunk/src/sandbox/linux/services/credentials.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698