20 #ifndef PALUDIS_GUARD_PALUDIS_UTIL_SECURITY_CONTEXT_HH
21 #define PALUDIS_GUARD_PALUDIS_UTIL_SECURITY_CONTEXT_HH 1
27 #include <paludis/util/fs_path.hh>
39 class SecurityContext;
60 std::ostream& operator<<(std::ostream&, const SecurityContext &)
PALUDIS_VISIBLE;
74 : Exception(our_message)
117 static std::shared_ptr<const SecurityContext> current_context();
122 static std::shared_ptr<const SecurityContext> fs_create_context();
140 std::shared_ptr<const SecurityContext> _context;
141 std::shared_ptr<const SecurityContext> _prev_context;
147 FSCreateCon(
const std::shared_ptr<const SecurityContext> &);
180 std::shared_ptr<const SecurityContext> match(
const std::string &, mode_t = 0)
const;