Home
last modified time | relevance | path

Searched refs:MAX_PERM_LEN (Results 1 – 4 of 4) sorted by relevance

/base/security/access_token/interfaces/innerkits/nativetoken/include/
Dnativetoken.h36 #define MAX_PERM_LEN 256 macro
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp567 const std::string invalidDcap (MAX_PERM_LEN + 1, 'x');
575 const std::string validDcap01 (MAX_PERM_LEN, 'x');
584 const std::string validDcap02 (MAX_PERM_LEN - 1, 'x');
733 const std::string invalidAcl (MAX_PERM_LEN + 1, 'x');
741 const std::string validcAcl01 (MAX_PERM_LEN, 'x');
750 const std::string validcAcl02 (MAX_PERM_LEN - 1, 'x');
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken.c118 StrAttrSet(&attr, MAX_PERM_LEN, MAX_PERM_NUM, PERMS_KEY_NAME); in GetNativeTokenFromJson()
126 StrAttrSet(&attr, MAX_PERM_LEN, MAX_PERM_NUM, ACLS_KEY_NAME); in GetNativeTokenFromJson()
425 …int32_t retPerm = CheckStrArray(tokenInfo->perms, tokenInfo->permsNum, MAX_PERM_NUM, MAX_PERM_LEN); in CheckProcessInfo()
431 … uint32_t retAcl = CheckStrArray(tokenInfo->acls, tokenInfo->aclsNum, MAX_PERM_NUM, MAX_PERM_LEN); in CheckProcessInfo()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/
Dnativetoken_oper_test.cpp229 tokenNode.perms[0] = static_cast<char *>(malloc(sizeof(char) * MAX_PERM_LEN));
231 (void)strcpy_s(tokenNode.perms[0], MAX_PERM_LEN, "x");