summaryrefslogtreecommitdiff
path: root/libc/system_properties/context_node.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/system_properties/context_node.h')
-rw-r--r--libc/system_properties/context_node.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/system_properties/context_node.h b/libc/system_properties/context_node.h
index 1c6cbbb8e..769b85332 100644
--- a/libc/system_properties/context_node.h
+++ b/libc/system_properties/context_node.h
@@ -41,9 +41,16 @@ class ContextNode {
~ContextNode() {
Unmap();
}
+
+ ContextNode(const ContextNode&) = delete;
+ ContextNode(ContextNode&&) = delete;
+ void operator=(const ContextNode&) = delete;
+ void operator=(const ContextNode&&) = delete;
+
bool Open(bool access_rw, bool* fsetxattr_failed);
bool CheckAccessAndOpen();
void ResetAccess();
+ void Unmap();
const char* context() const {
return context_;
@@ -54,7 +61,6 @@ class ContextNode {
private:
bool CheckAccess();
- void Unmap();
Lock lock_;
const char* context_;