• Home
  • Raw
  • Download

Lines Matching refs:i

393 	int i;  in smk_parse_long_rule()  local
398 for (i = 0; i < tokens; ++i) { in smk_parse_long_rule()
406 tok[i] = data + cnt; in smk_parse_long_rule()
414 while (i < 4) in smk_parse_long_rule()
415 tok[i++] = NULL; in smk_parse_long_rule()
535 int i = *pos; in smk_seq_start() local
541 if (i-- == 0) in smk_seq_start()
774 int i; in cipso_seq_show() local
789 for (i = netlbl_catmap_walk(cmp, 0); i >= 0; in cipso_seq_show()
790 i = netlbl_catmap_walk(cmp, i + 1)) { in cipso_seq_show()
791 seq_printf(s, "%c%d", sep, i); in cipso_seq_show()
844 int i; in smk_set_cipso() local
896 for (i = 0; i < catlen; i++) { in smk_set_cipso()
958 int i; in cipso2_seq_show() local
962 for (i = netlbl_catmap_walk(cmp, 0); i >= 0; in cipso2_seq_show()
963 i = netlbl_catmap_walk(cmp, i + 1)) { in cipso2_seq_show()
964 seq_printf(s, "%c%d", sep, i); in cipso2_seq_show()
1396 int i; in smk_write_net6addr() local
1425 i = sscanf(data, "%x:%x:%x:%x:%x:%x:%x:%x/%u %s", in smk_write_net6addr()
1429 if (i != 10) { in smk_write_net6addr()
1430 i = sscanf(data, "%x:%x:%x:%x:%x:%x:%x:%x %s", in smk_write_net6addr()
1434 if (i != 9) { in smk_write_net6addr()
1443 for (i = 0; i < 8; i++) { in smk_write_net6addr()
1444 if (scanned[i] > 0xffff) { in smk_write_net6addr()
1448 newname.s6_addr16[i] = htons(scanned[i]); in smk_write_net6addr()
1470 for (i = 0, m = mask; i < 8; i++) { in smk_write_net6addr()
1472 fullmask.s6_addr16[i] = 0xffff; in smk_write_net6addr()
1475 fullmask.s6_addr16[i] = (1 << m) - 1; in smk_write_net6addr()
1478 fullmask.s6_addr16[i] = 0; in smk_write_net6addr()
1479 newname.s6_addr16[i] &= fullmask.s6_addr16[i]; in smk_write_net6addr()
1493 for (found = 1, i = 0; i < 8; i++) { in smk_write_net6addr()
1494 if (newname.s6_addr16[i] != in smk_write_net6addr()
1495 snp->smk_host.s6_addr16[i]) { in smk_write_net6addr()
1577 int i; in smk_write_doi() local
1590 if (sscanf(temp, "%d", &i) != 1) in smk_write_doi()
1593 smk_cipso_doi_value = i; in smk_write_doi()
1644 int i; in smk_write_direct() local
1657 if (sscanf(temp, "%d", &i) != 1) in smk_write_direct()
1665 if (smack_cipso_direct != i) { in smk_write_direct()
1670 skp->smk_netlabel.attr.mls.lvl = i; in smk_write_direct()
1671 smack_cipso_direct = i; in smk_write_direct()
1722 int i; in smk_write_mapped() local
1735 if (sscanf(temp, "%d", &i) != 1) in smk_write_mapped()
1743 if (smack_cipso_mapped != i) { in smk_write_mapped()
1748 skp->smk_netlabel.attr.mls.lvl = i; in smk_write_mapped()
1749 smack_cipso_mapped = i; in smk_write_mapped()
2148 int i; in smk_write_logging() local
2161 if (sscanf(temp, "%d", &i) != 1) in smk_write_logging()
2163 if (i < 0 || i > 3) in smk_write_logging()
2165 log_policy = i; in smk_write_logging()
2789 int i; in smk_write_ptrace() local
2802 if (sscanf(temp, "%d", &i) != 1) in smk_write_ptrace()
2804 if (i < SMACK_PTRACE_DEFAULT || i > SMACK_PTRACE_MAX) in smk_write_ptrace()
2806 smack_ptrace_rule = i; in smk_write_ptrace()