Lines Matching refs:str_len
1174 size_t str_len = 0; in cil_userprefixes_to_string() local
1192 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1195 *size = str_len * sizeof(char); in cil_userprefixes_to_string()
1196 str_len++; in cil_userprefixes_to_string()
1197 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1204 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1206 str_len -= buf_pos; in cil_userprefixes_to_string()
1297 int str_len = 0; in __cil_level_strlen() local
1303 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1306 str_len++; /* initial ":" */ in __cil_level_strlen()
1318 str_len += strlen(str1) + strlen(cat->datum.fqn) + 1; in __cil_level_strlen()
1320 str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2; in __cil_level_strlen()
1322 str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2; in __cil_level_strlen()
1327 str_len++; /* space for "," after */ in __cil_level_strlen()
1333 str_len += strlen(str1); in __cil_level_strlen()
1335 str_len += strlen(str1) + strlen(str2) + 1; in __cil_level_strlen()
1337 str_len += strlen(str1) + strlen(str2) + 1; in __cil_level_strlen()
1342 return str_len; in __cil_level_strlen()
1414 size_t str_len = 0; in cil_selinuxusers_to_string() local
1429 str_len += strlen(selinuxuser->name_str) + strlen(user->datum.fqn) + 1; in cil_selinuxusers_to_string()
1433 str_len += __cil_level_strlen(range->low) + __cil_level_strlen(range->high) + 2; in cil_selinuxusers_to_string()
1436 str_len++; in cil_selinuxusers_to_string()
1439 *size = str_len * sizeof(char); in cil_selinuxusers_to_string()
1484 size_t str_len = 0; in cil_filecons_to_string() local
1492 str_len += strlen(filecon->path_str); in cil_filecons_to_string()
1497 str_len += 3; in cil_filecons_to_string()
1505 str_len += (strlen(user->datum.fqn) + strlen(role->datum.fqn) + strlen(type->datum.fqn) + 3); in cil_filecons_to_string()
1510 str_len += __cil_level_strlen(range->low) + 1; in cil_filecons_to_string()
1512 str_len += __cil_level_strlen(range->low) + __cil_level_strlen(range->high) + 2; in cil_filecons_to_string()
1516 str_len += strlen("\t<<none>>"); in cil_filecons_to_string()
1519 str_len++; in cil_filecons_to_string()
1522 *size = str_len * sizeof(char); in cil_filecons_to_string()