Lines Matching refs:buf_pos
1128 int buf_pos = 0; in cil_userprefixes_to_string() local
1157 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1159 str_len -= buf_pos; in cil_userprefixes_to_string()
1160 str_tmp += buf_pos; in cil_userprefixes_to_string()
1302 int buf_pos = 0; in __cil_level_to_string() local
1309 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
1310 str_tmp += buf_pos; in __cil_level_to_string()
1313 buf_pos = sprintf(str_tmp, ":"); in __cil_level_to_string()
1314 str_tmp += buf_pos; in __cil_level_to_string()
1327 buf_pos = sprintf(str_tmp, "%s,%s", str1, cat->datum.fqn); in __cil_level_to_string()
1328 str_tmp += buf_pos; in __cil_level_to_string()
1330 buf_pos = sprintf(str_tmp, "%s,%s,%s", str1, str2, cat->datum.fqn); in __cil_level_to_string()
1331 str_tmp += buf_pos; in __cil_level_to_string()
1333 buf_pos = sprintf(str_tmp, "%s.%s,%s",str1, str2, cat->datum.fqn); in __cil_level_to_string()
1334 str_tmp += buf_pos; in __cil_level_to_string()
1339 buf_pos = sprintf(str_tmp, ","); in __cil_level_to_string()
1340 str_tmp += buf_pos; in __cil_level_to_string()
1346 buf_pos = sprintf(str_tmp, "%s", str1); in __cil_level_to_string()
1347 str_tmp += buf_pos; in __cil_level_to_string()
1349 buf_pos = sprintf(str_tmp, "%s,%s", str1, str2); in __cil_level_to_string()
1350 str_tmp += buf_pos; in __cil_level_to_string()
1352 buf_pos = sprintf(str_tmp, "%s.%s",str1, str2); in __cil_level_to_string()
1353 str_tmp += buf_pos; in __cil_level_to_string()
1368 int buf_pos = 0; in cil_selinuxusers_to_string() local
1400 buf_pos = sprintf(str_tmp, "%s:%s", selinuxuser->name_str, user->datum.fqn); in cil_selinuxusers_to_string()
1401 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1405 buf_pos = sprintf(str_tmp, ":"); in cil_selinuxusers_to_string()
1406 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1407 buf_pos = __cil_level_to_string(range->low, str_tmp); in cil_selinuxusers_to_string()
1408 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1409 buf_pos = sprintf(str_tmp, "-"); in cil_selinuxusers_to_string()
1410 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1411 buf_pos = __cil_level_to_string(range->high, str_tmp); in cil_selinuxusers_to_string()
1412 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1415 buf_pos = sprintf(str_tmp, "\n"); in cil_selinuxusers_to_string()
1416 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1436 int buf_pos = 0; in cil_filecons_to_string() local
1484 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
1485 str_tmp += buf_pos; in cil_filecons_to_string()
1513 buf_pos = sprintf(str_tmp, "%s", str_type); in cil_filecons_to_string()
1514 str_tmp += buf_pos; in cil_filecons_to_string()
1521 buf_pos = sprintf(str_tmp, "\t%s:%s:%s", user->datum.fqn, role->datum.fqn, in cil_filecons_to_string()
1523 str_tmp += buf_pos; in cil_filecons_to_string()
1527 buf_pos = sprintf(str_tmp, ":"); in cil_filecons_to_string()
1528 str_tmp += buf_pos; in cil_filecons_to_string()
1529 buf_pos = __cil_level_to_string(range->low, str_tmp); in cil_filecons_to_string()
1530 str_tmp += buf_pos; in cil_filecons_to_string()
1533 buf_pos = sprintf(str_tmp, "-"); in cil_filecons_to_string()
1534 str_tmp += buf_pos; in cil_filecons_to_string()
1535 buf_pos = __cil_level_to_string(range->high, str_tmp); in cil_filecons_to_string()
1536 str_tmp += buf_pos; in cil_filecons_to_string()
1540 buf_pos = sprintf(str_tmp, "\t<<none>>"); in cil_filecons_to_string()
1541 str_tmp += buf_pos; in cil_filecons_to_string()
1544 buf_pos = sprintf(str_tmp, "\n"); in cil_filecons_to_string()
1545 str_tmp += buf_pos; in cil_filecons_to_string()