• Home
  • Raw
  • Download

Lines Matching refs:count

444 					size_t count, loff_t *ppos,  in smk_write_rules_list()  argument
466 if (count < SMK_OLOADLEN || count > SMK_LOADLEN) in smk_write_rules_list()
469 if (count >= PAGE_SIZE) { in smk_write_rules_list()
470 count = PAGE_SIZE - 1; in smk_write_rules_list()
475 data = memdup_user_nul(buf, count); in smk_write_rules_list()
484 while (count > 0 && (data[count - 1] != '\n')) in smk_write_rules_list()
485 --count; in smk_write_rules_list()
486 if (count == 0) { in smk_write_rules_list()
492 data[count] = '\0'; in smk_write_rules_list()
494 while (cnt < count) { in smk_write_rules_list()
499 cnt = count; in smk_write_rules_list()
658 size_t count, loff_t *ppos) in smk_write_load() argument
668 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_load()
832 size_t count, loff_t *ppos, int format) in smk_set_cipso() argument
856 (count < SMK_CIPSOMIN || count > SMK_CIPSOMAX)) in smk_set_cipso()
859 data = memdup_user_nul(buf, count); in smk_set_cipso()
891 count != (SMK_CIPSOMIN + catlen * SMK_DIGITLEN)) in smk_set_cipso()
910 rc = count; in smk_set_cipso()
930 size_t count, loff_t *ppos) in smk_write_cipso() argument
932 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT); in smk_write_cipso()
1004 size_t count, loff_t *ppos) in smk_write_cipso2() argument
1006 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT); in smk_write_cipso2()
1123 size_t count, loff_t *ppos) in smk_write_net4addr() argument
1152 if (count < SMK_NETLBLADDRMIN) in smk_write_net4addr()
1155 data = memdup_user_nul(buf, count); in smk_write_net4addr()
1159 smack = kzalloc(count + 1, GFP_KERNEL); in smk_write_net4addr()
1262 rc = count; in smk_write_net4addr()
1386 size_t count, loff_t *ppos) in smk_write_net6addr() argument
1412 if (count < SMK_NETLBLADDRMIN) in smk_write_net6addr()
1415 data = memdup_user_nul(buf, count); in smk_write_net6addr()
1419 smack = kzalloc(count + 1, GFP_KERNEL); in smk_write_net6addr()
1519 rc = count; in smk_write_net6addr()
1550 size_t count, loff_t *ppos) in smk_read_doi() argument
1559 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in smk_read_doi()
1574 size_t count, loff_t *ppos) in smk_write_doi() argument
1582 if (count >= sizeof(temp) || count == 0) in smk_write_doi()
1585 if (copy_from_user(temp, buf, count) != 0) in smk_write_doi()
1588 temp[count] = '\0'; in smk_write_doi()
1597 return count; in smk_write_doi()
1616 size_t count, loff_t *ppos) in smk_read_direct() argument
1625 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in smk_read_direct()
1640 size_t count, loff_t *ppos) in smk_write_direct() argument
1649 if (count >= sizeof(temp) || count == 0) in smk_write_direct()
1652 if (copy_from_user(temp, buf, count) != 0) in smk_write_direct()
1655 temp[count] = '\0'; in smk_write_direct()
1675 return count; in smk_write_direct()
1694 size_t count, loff_t *ppos) in smk_read_mapped() argument
1703 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in smk_read_mapped()
1718 size_t count, loff_t *ppos) in smk_write_mapped() argument
1727 if (count >= sizeof(temp) || count == 0) in smk_write_mapped()
1730 if (copy_from_user(temp, buf, count) != 0) in smk_write_mapped()
1733 temp[count] = '\0'; in smk_write_mapped()
1753 return count; in smk_write_mapped()
1809 size_t count, loff_t *ppos) in smk_write_ambient() argument
1814 int rc = count; in smk_write_ambient()
1819 data = memdup_user_nul(buf, count); in smk_write_ambient()
1823 skp = smk_import_entry(data, count); in smk_write_ambient()
1981 size_t count, loff_t *ppos) in smk_write_onlycap() argument
1990 data = memdup_user_nul(buf, count); in smk_write_onlycap()
2011 rc = count; in smk_write_onlycap()
2068 size_t count, loff_t *ppos) in smk_write_unconfined() argument
2072 int rc = count; in smk_write_unconfined()
2077 data = memdup_user_nul(buf, count); in smk_write_unconfined()
2090 skp = smk_import_entry(data, count); in smk_write_unconfined()
2122 size_t count, loff_t *ppos) in smk_read_logging() argument
2131 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in smk_read_logging()
2145 size_t count, loff_t *ppos) in smk_write_logging() argument
2153 if (count >= sizeof(temp) || count == 0) in smk_write_logging()
2156 if (copy_from_user(temp, buf, count) != 0) in smk_write_logging()
2159 temp[count] = '\0'; in smk_write_logging()
2166 return count; in smk_write_logging()
2235 size_t count, loff_t *ppos) in smk_write_load_self() argument
2239 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules, in smk_write_load_self()
2259 size_t count, loff_t *ppos, int format) in smk_user_access() argument
2265 data = simple_transaction_get(file, buf, count); in smk_user_access()
2270 if (count < SMK_LOADLEN) in smk_user_access()
2296 return count; in smk_user_access()
2307 size_t count, loff_t *ppos) in smk_write_access() argument
2309 return smk_user_access(file, buf, count, ppos, SMK_FIXED24_FMT); in smk_write_access()
2365 size_t count, loff_t *ppos) in smk_write_load2() argument
2373 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_load2()
2442 size_t count, loff_t *ppos) in smk_write_load_self2() argument
2446 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules, in smk_write_load_self2()
2466 size_t count, loff_t *ppos) in smk_write_access2() argument
2468 return smk_user_access(file, buf, count, ppos, SMK_LONG_FMT); in smk_write_access2()
2486 size_t count, loff_t *ppos) in smk_write_revoke_subj() argument
2494 int rc = count; in smk_write_revoke_subj()
2502 if (count == 0 || count > SMK_LONGLABEL) in smk_write_revoke_subj()
2505 data = memdup_user(buf, count); in smk_write_revoke_subj()
2509 cp = smk_parse_smack(data, count); in smk_write_revoke_subj()
2561 size_t count, loff_t *ppos) in smk_write_change_rule() argument
2569 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_change_rule()
2623 size_t count, loff_t *ppos) in smk_write_syslog() argument
2627 int rc = count; in smk_write_syslog()
2632 data = memdup_user_nul(buf, count); in smk_write_syslog()
2636 skp = smk_import_entry(data, count); in smk_write_syslog()
2711 size_t count, loff_t *ppos) in smk_write_relabel_self() argument
2730 data = memdup_user_nul(buf, count); in smk_write_relabel_self()
2740 return count; in smk_write_relabel_self()
2765 size_t count, loff_t *ppos) in smk_read_ptrace() argument
2774 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in smk_read_ptrace()
2786 size_t count, loff_t *ppos) in smk_write_ptrace() argument
2794 if (*ppos != 0 || count >= sizeof(temp) || count == 0) in smk_write_ptrace()
2797 if (copy_from_user(temp, buf, count) != 0) in smk_write_ptrace()
2800 temp[count] = '\0'; in smk_write_ptrace()
2808 return count; in smk_write_ptrace()