Home
last modified time | relevance | path

Searched refs:xattrValue (Results 1 - 2 of 2) sorted by relevance

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
H A Dsecurity_label.h47 char xattrValue[DEFAULT_DATA_LENGTH + 1]; in SetSecurityLabel() local
49 xattrValueSize = getxattr(path.c_str(), XATTR_KEY, xattrValue, xattrValueSize, 0, 0); in SetSecurityLabel()
51 xattrValueSize = getxattr(path.c_str(), XATTR_KEY, xattrValue, xattrValueSize); in SetSecurityLabel()
53 xattrValue[DEFAULT_DATA_LENGTH] = '\0'; in SetSecurityLabel()
54 if (std::string(xattrValue) > dataLevel) { in SetSecurityLabel()
79 std::unique_ptr<char[]> xattrValue = std::make_unique<char[]>((long)xattrValueSize + 1); in SetSecurityLabel() local
80 if (xattrValue == nullptr) { in SetSecurityLabel()
84 xattrValueSize = getxattr(path.c_str(), XATTR_KEY, xattrValue.get(), xattrValueSize, 0, 0); in SetSecurityLabel()
86 xattrValueSize = getxattr(path.c_str(), XATTR_KEY, xattrValue.get(), xattrValueSize); in SetSecurityLabel()
91 return std::string(xattrValue in SetSecurityLabel()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dxattr.cpp55 auto xattrValue = CreateUniquePtr<char[]>(static_cast<long>(xAttrSize) + 1); in GetXattrCore() local
56 xAttrSize = getxattr(path, key, xattrValue.get(), static_cast<size_t>(xAttrSize)); in GetXattrCore()
60 xattrValue[xAttrSize] = '\0'; in GetXattrCore()
61 *result = std::string(xattrValue.get()); in GetXattrCore()

Completed in 1 milliseconds