5 #ifndef CVMFS_MAGIC_XATTR_H_
6 #define CVMFS_MAGIC_XATTR_H_
118 std::pair<bool, std::string>
GetValue(int32_t requested_page,
225 const std::set<std::string> &protected_xattrs,
404 FRIEND_TEST(T_MagicXattr, MultiPageMachineModeXattr);
405 FRIEND_TEST(T_MagicXattr, MultiPageHumanModeXattr);
493 #endif // CVMFS_MAGIC_XATTR_H_
const std::set< gid_t > privileged_xattr_gids_
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
bool PrepareValueFencedProtected(gid_t gid)
virtual void FinalizeValue()
virtual void FinalizeValue()
std::string subcatalog_path_
virtual void FinalizeValue()
virtual void FinalizeValue()
void Register(const std::string &name, BaseMagicXattr *magic_xattr)
virtual bool PrepareValueFenced()
pthread_mutex_t access_mutex_
MountPoint * mount_point()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual MagicXattrFlavor GetXattrFlavor()
virtual void FinalizeValue()
std::set< gid_t > privileged_xattr_gids()
virtual void FinalizeValue()
catalog::Counters counters_
virtual void FinalizeValue()
BaseMagicXattr * GetLocked(const std::string &name, PathString path, catalog::DirectoryEntry *d)
virtual void FinalizeValue()
const std::set< std::string > protected_xattrs_
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
virtual bool PrepareValueFenced()
virtual void FinalizeValue()
assert((mem||(size==0))&&"Out Of Memory")
virtual void FinalizeValue()
catalog::DirectoryEntry * dirent_
BaseMagicXattr * operator->() const
std::vector< std::string > chunk_list_
virtual bool PrepareValueFenced()
bool IsPrivilegedGid(gid_t gid)
virtual bool PrepareValueFenced()
virtual void FinalizeValue()
MountPoint * mount_point_
virtual bool PrepareValueFenced()
MagicXattrManager * xattr_mgr_
std::string GetListString(catalog::DirectoryEntry *dirent)
MagicXattrRAIIWrapper(BaseMagicXattr *ptr, PathString path, catalog::DirectoryEntry *d)
static const uint32_t kMaxCharsPerPage
virtual bool PrepareValueFenced()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
std::string HeaderMultipageHuman(uint32_t requested_page)
virtual MagicXattrFlavor GetXattrFlavor()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
FRIEND_TEST(T_MagicXattr, MultiPageMachineModeXattr)
virtual MagicXattrFlavor GetXattrFlavor()
virtual bool PrepareValueFenced()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
std::pair< bool, std::string > GetValue(int32_t requested_page, const MagicXattrMode mode)
FRIEND_TEST(T_MagicXattr, ProtectedXattr)
virtual void FinalizeValue()
const unsigned int kMaxLogLine
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
virtual void FinalizeValue()
MagicXattrRAIIWrapper(BaseMagicXattr *ptr)
Wraps around a BaseMagicXattr* that is already locked (or NULL)
MagicXattrManager(MountPoint *mountpoint, EVisibility visibility, const std::set< std::string > &protected_xattrs, const std::set< gid_t > &privileged_xattr_gids)
virtual void FinalizeValue()
BackoffThrottle throttle_
std::vector< std::string > pubkeys_
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
std::map< std::string, BaseMagicXattr * > xattr_list_
virtual bool PrepareValueFenced()
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
virtual ~BaseMagicXattr()
catalog::Counters counters_
virtual void FinalizeValue()
virtual MagicXattrFlavor GetXattrFlavor()
virtual bool PrepareValueFenced()
virtual MagicXattrFlavor GetXattrFlavor()
void Lock(PathString path, catalog::DirectoryEntry *dirent)
virtual bool PrepareValueFenced()
virtual MagicXattrFlavor GetXattrFlavor()
virtual void FinalizeValue()
virtual bool PrepareValueFenced()
std::vector< std::string > result_pages_
virtual bool PrepareValueFenced()
void SanityCheckProtectedXattrs()
virtual bool PrepareValueFenced()