Lines Matching refs:i
423 int i; in smk_parse_long_rule() local
428 for (i = 0; i < tokens; ++i) { in smk_parse_long_rule()
436 tok[i] = data + cnt; in smk_parse_long_rule()
444 while (i < 4) in smk_parse_long_rule()
445 tok[i++] = NULL; in smk_parse_long_rule()
565 int i = *pos; in smk_seq_start() local
571 if (i-- == 0) in smk_seq_start()
802 int i; in cipso_seq_show() local
817 for (i = netlbl_catmap_walk(cmp, 0); i >= 0; in cipso_seq_show()
818 i = netlbl_catmap_walk(cmp, i + 1)) { in cipso_seq_show()
819 seq_printf(s, "%c%d", sep, i); in cipso_seq_show()
872 int i; in smk_set_cipso() local
924 for (i = 0; i < catlen; i++) { in smk_set_cipso()
986 int i; in cipso2_seq_show() local
990 for (i = netlbl_catmap_walk(cmp, 0); i >= 0; in cipso2_seq_show()
991 i = netlbl_catmap_walk(cmp, i + 1)) { in cipso2_seq_show()
992 seq_printf(s, "%c%d", sep, i); in cipso2_seq_show()
1424 int i; in smk_write_net6addr() local
1453 i = sscanf(data, "%x:%x:%x:%x:%x:%x:%x:%x/%u %s", in smk_write_net6addr()
1457 if (i != 10) { in smk_write_net6addr()
1458 i = sscanf(data, "%x:%x:%x:%x:%x:%x:%x:%x %s", in smk_write_net6addr()
1462 if (i != 9) { in smk_write_net6addr()
1471 for (i = 0; i < 8; i++) { in smk_write_net6addr()
1472 if (scanned[i] > 0xffff) { in smk_write_net6addr()
1476 newname.s6_addr16[i] = htons(scanned[i]); in smk_write_net6addr()
1498 for (i = 0, m = mask; i < 8; i++) { in smk_write_net6addr()
1500 fullmask.s6_addr16[i] = 0xffff; in smk_write_net6addr()
1503 fullmask.s6_addr16[i] = (1 << m) - 1; in smk_write_net6addr()
1506 fullmask.s6_addr16[i] = 0; in smk_write_net6addr()
1507 newname.s6_addr16[i] &= fullmask.s6_addr16[i]; in smk_write_net6addr()
1521 for (found = 1, i = 0; i < 8; i++) { in smk_write_net6addr()
1522 if (newname.s6_addr16[i] != in smk_write_net6addr()
1523 snp->smk_host.s6_addr16[i]) { in smk_write_net6addr()
1605 int i; in smk_write_doi() local
1618 if (sscanf(temp, "%d", &i) != 1) in smk_write_doi()
1621 smk_cipso_doi_value = i; in smk_write_doi()
1672 int i; in smk_write_direct() local
1685 if (sscanf(temp, "%d", &i) != 1) in smk_write_direct()
1693 if (smack_cipso_direct != i) { in smk_write_direct()
1698 skp->smk_netlabel.attr.mls.lvl = i; in smk_write_direct()
1699 smack_cipso_direct = i; in smk_write_direct()
1750 int i; in smk_write_mapped() local
1763 if (sscanf(temp, "%d", &i) != 1) in smk_write_mapped()
1771 if (smack_cipso_mapped != i) { in smk_write_mapped()
1776 skp->smk_netlabel.attr.mls.lvl = i; in smk_write_mapped()
1777 smack_cipso_mapped = i; in smk_write_mapped()
2176 int i; in smk_write_logging() local
2189 if (sscanf(temp, "%d", &i) != 1) in smk_write_logging()
2191 if (i < 0 || i > 3) in smk_write_logging()
2193 log_policy = i; in smk_write_logging()
2815 int i; in smk_write_ptrace() local
2828 if (sscanf(temp, "%d", &i) != 1) in smk_write_ptrace()
2830 if (i < SMACK_PTRACE_DEFAULT || i > SMACK_PTRACE_MAX) in smk_write_ptrace()
2832 smack_ptrace_rule = i; in smk_write_ptrace()