Lines Matching refs:str_tmp
1429 char *str_tmp = NULL; in cil_userprefixes_to_string() local
1450 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1451 *out = str_tmp; in cil_userprefixes_to_string()
1457 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1460 str_tmp += buf_pos; in cil_userprefixes_to_string()
1598 char *str_tmp = out; in __cil_level_to_string() local
1604 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
1605 str_tmp += buf_pos; in __cil_level_to_string()
1608 buf_pos = sprintf(str_tmp, ":"); in __cil_level_to_string()
1609 str_tmp += buf_pos; in __cil_level_to_string()
1622 buf_pos = sprintf(str_tmp, "%s,%s", str1, cat->datum.fqn); in __cil_level_to_string()
1623 str_tmp += buf_pos; in __cil_level_to_string()
1625 buf_pos = sprintf(str_tmp, "%s,%s,%s", str1, str2, cat->datum.fqn); in __cil_level_to_string()
1626 str_tmp += buf_pos; in __cil_level_to_string()
1628 buf_pos = sprintf(str_tmp, "%s.%s,%s",str1, str2, cat->datum.fqn); in __cil_level_to_string()
1629 str_tmp += buf_pos; in __cil_level_to_string()
1634 buf_pos = sprintf(str_tmp, ","); in __cil_level_to_string()
1635 str_tmp += buf_pos; in __cil_level_to_string()
1641 buf_pos = sprintf(str_tmp, "%s", str1); in __cil_level_to_string()
1642 str_tmp += buf_pos; in __cil_level_to_string()
1644 buf_pos = sprintf(str_tmp, "%s,%s", str1, str2); in __cil_level_to_string()
1645 str_tmp += buf_pos; in __cil_level_to_string()
1647 buf_pos = sprintf(str_tmp, "%s.%s",str1, str2); in __cil_level_to_string()
1648 str_tmp += buf_pos; in __cil_level_to_string()
1653 return str_tmp - out; in __cil_level_to_string()
1660 char *str_tmp = NULL; in cil_selinuxusers_to_string() local
1684 str_tmp = cil_malloc(*size+1); in cil_selinuxusers_to_string()
1685 *out = str_tmp; in cil_selinuxusers_to_string()
1691 buf_pos = sprintf(str_tmp, "%s:%s", selinuxuser->name_str, user->datum.fqn); in cil_selinuxusers_to_string()
1692 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1696 buf_pos = sprintf(str_tmp, ":"); in cil_selinuxusers_to_string()
1697 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1698 buf_pos = __cil_level_to_string(range->low, str_tmp); in cil_selinuxusers_to_string()
1699 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1700 buf_pos = sprintf(str_tmp, "-"); in cil_selinuxusers_to_string()
1701 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1702 buf_pos = __cil_level_to_string(range->high, str_tmp); in cil_selinuxusers_to_string()
1703 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1706 buf_pos = sprintf(str_tmp, "\n"); in cil_selinuxusers_to_string()
1707 str_tmp += buf_pos; in cil_selinuxusers_to_string()
1718 char *str_tmp = NULL; in cil_filecons_to_string() local
1756 str_tmp = cil_malloc(*size+1); in cil_filecons_to_string()
1757 *out = str_tmp; in cil_filecons_to_string()
1764 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
1765 str_tmp += buf_pos; in cil_filecons_to_string()
1793 buf_pos = sprintf(str_tmp, "%s", str_type); in cil_filecons_to_string()
1794 str_tmp += buf_pos; in cil_filecons_to_string()
1801 buf_pos = sprintf(str_tmp, "\t%s:%s:%s", user->datum.fqn, role->datum.fqn, in cil_filecons_to_string()
1803 str_tmp += buf_pos; in cil_filecons_to_string()
1807 buf_pos = sprintf(str_tmp, ":"); in cil_filecons_to_string()
1808 str_tmp += buf_pos; in cil_filecons_to_string()
1809 buf_pos = __cil_level_to_string(range->low, str_tmp); in cil_filecons_to_string()
1810 str_tmp += buf_pos; in cil_filecons_to_string()
1813 buf_pos = sprintf(str_tmp, "-"); in cil_filecons_to_string()
1814 str_tmp += buf_pos; in cil_filecons_to_string()
1815 buf_pos = __cil_level_to_string(range->high, str_tmp); in cil_filecons_to_string()
1816 str_tmp += buf_pos; in cil_filecons_to_string()
1820 buf_pos = sprintf(str_tmp, "\t<<none>>"); in cil_filecons_to_string()
1821 str_tmp += buf_pos; in cil_filecons_to_string()
1824 buf_pos = sprintf(str_tmp, "\n"); in cil_filecons_to_string()
1825 str_tmp += buf_pos; in cil_filecons_to_string()