• Home
  • Raw
  • Download

Lines Matching refs:str

1487 #define update_for_len(total, len, size, str)	\  argument
1495 str += ulen; \
1512 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint() argument
1518 AA_BUG(!str && size != 0); in aa_profile_snxprint()
1532 return snprintf(str, size, "%s", "unconfined"); in aa_profile_snxprint()
1533 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint()
1541 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint()
1543 return snprintf(str, size, "%s (%s)", profile->base.hname, in aa_profile_snxprint()
1548 return snprintf(str, size, ":%s:%s", ns_name, in aa_profile_snxprint()
1550 return snprintf(str, size, "%s", profile->base.hname); in aa_profile_snxprint()
1623 int aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, in aa_label_snxprint() argument
1632 AA_BUG(!str && size != 0); in aa_label_snxprint()
1637 len = snprintf(str, size, "_"); in aa_label_snxprint()
1638 update_for_len(total, len, size, str); in aa_label_snxprint()
1646 len = snprintf(str, size, "//&"); in aa_label_snxprint()
1647 update_for_len(total, len, size, str); in aa_label_snxprint()
1649 len = aa_profile_snxprint(str, size, ns, profile, in aa_label_snxprint()
1652 update_for_len(total, len, size, str); in aa_label_snxprint()
1659 return snprintf(str, size, "%s", "unconfined"); in aa_label_snxprint()
1660 return snprintf(str, size, "%s", aa_hidden_ns_name); in aa_label_snxprint()
1667 len = snprintf(str, size, " (%s)", in aa_label_snxprint()
1669 update_for_len(total, len, size, str); in aa_label_snxprint()
1738 const char *str; in aa_label_xaudit() local
1752 str = name; in aa_label_xaudit()
1754 str = (char *) label->hname; in aa_label_xaudit()
1755 len = strlen(str); in aa_label_xaudit()
1757 if (audit_string_contains_control(str, len)) in aa_label_xaudit()
1758 audit_log_n_hex(ab, str, len); in aa_label_xaudit()
1760 audit_log_n_string(ab, str, len); in aa_label_xaudit()
1772 char *str; in aa_label_seq_xprint() local
1775 len = aa_label_asxprint(&str, ns, label, flags, gfp); in aa_label_seq_xprint()
1780 seq_puts(f, str); in aa_label_seq_xprint()
1781 kfree(str); in aa_label_seq_xprint()
1795 char *str; in aa_label_xprintk() local
1798 len = aa_label_asxprint(&str, ns, label, flags, gfp); in aa_label_xprintk()
1803 pr_info("%s", str); in aa_label_xprintk()
1804 kfree(str); in aa_label_xprintk()
1836 static int label_count_strn_entries(const char *str, size_t n) in label_count_strn_entries() argument
1838 const char *end = str + n; in label_count_strn_entries()
1842 AA_BUG(!str); in label_count_strn_entries()
1844 for (split = aa_label_strn_split(str, end - str); in label_count_strn_entries()
1846 split = aa_label_strn_split(str, end - str)) { in label_count_strn_entries()
1848 str = split + 3; in label_count_strn_entries()
1863 const char *str, size_t n) in fqlookupn_profile() argument
1865 const char *first = skipn_spaces(str, n); in fqlookupn_profile()
1868 return aa_fqlookupn_profile(base, str, n); in fqlookupn_profile()
1870 return aa_fqlookupn_profile(currentbase, str, n); in fqlookupn_profile()
1885 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, in aa_label_strn_parse() argument
1892 const char *end = str + n; in aa_label_strn_parse()
1896 AA_BUG(!str); in aa_label_strn_parse()
1898 str = skipn_spaces(str, n); in aa_label_strn_parse()
1899 if (str == NULL || (AA_DEBUG_LABEL && *str == '_' && in aa_label_strn_parse()
1903 len = label_count_strn_entries(str, end - str); in aa_label_strn_parse()
1904 if (*str == '&' || force_stack) { in aa_label_strn_parse()
1908 if (*str == '&') in aa_label_strn_parse()
1909 str++; in aa_label_strn_parse()
1919 for (split = aa_label_strn_split(str, end - str), i = stack; in aa_label_strn_parse()
1921 vec[i] = fqlookupn_profile(base, currbase, str, split - str); in aa_label_strn_parse()
1930 str = split + 3; in aa_label_strn_parse()
1931 split = aa_label_strn_split(str, end - str); in aa_label_strn_parse()
1935 vec[i] = fqlookupn_profile(base, currbase, str, end - str); in aa_label_strn_parse()
1967 struct aa_label *aa_label_parse(struct aa_label *base, const char *str, in aa_label_parse() argument
1970 return aa_label_strn_parse(base, str, strlen(str), gfp, create, in aa_label_parse()