Lines Matching refs:count

429  * @count: bytes sent
445 size_t count, loff_t *ppos,
467 if (count < SMK_OLOADLEN || count > SMK_LOADLEN)
470 if (count >= PAGE_SIZE) {
471 count = PAGE_SIZE - 1;
476 data = memdup_user_nul(buf, count);
485 while (count > 0 && (data[count - 1] != '\n'))
486 --count;
487 if (count == 0) {
493 data[count] = '\0';
495 while (cnt < count) {
500 cnt = count;
654 * @count: bytes sent
659 size_t count, loff_t *ppos)
669 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
823 * @count: bytes sent
831 size_t count, loff_t *ppos, int format)
856 (count < SMK_CIPSOMIN || count > SMK_CIPSOMAX))
858 if (count > PAGE_SIZE)
861 data = memdup_user_nul(buf, count);
883 if (rule > data + count) {
893 if (rule > data + count) {
903 count != (SMK_CIPSOMIN + catlen * SMK_DIGITLEN))
910 if (rule > data + count) {
939 rc = count;
956 * @count: bytes sent
963 size_t count, loff_t *ppos)
965 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT);
1030 * @count: bytes sent
1037 size_t count, loff_t *ppos)
1039 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT);
1149 * @count: bytes sent
1156 size_t count, loff_t *ppos)
1185 if (count < SMK_NETLBLADDRMIN || count > PAGE_SIZE - 1)
1188 data = memdup_user_nul(buf, count);
1192 smack = kzalloc(count + 1, GFP_KERNEL);
1294 rc = count;
1411 * @count: bytes sent
1418 size_t count, loff_t *ppos)
1444 if (count < SMK_NETLBLADDRMIN || count > PAGE_SIZE - 1)
1447 data = memdup_user_nul(buf, count);
1451 smack = kzalloc(count + 1, GFP_KERNEL);
1551 rc = count;
1576 * @count: maximum to send along
1582 size_t count, loff_t *ppos)
1591 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1600 * @count: bytes sent
1606 size_t count, loff_t *ppos)
1614 if (count >= sizeof(temp) || count == 0)
1617 if (copy_from_user(temp, buf, count) != 0)
1620 temp[count] = '\0';
1629 return count;
1642 * @count: maximum to send along
1648 size_t count, loff_t *ppos)
1657 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1666 * @count: bytes sent
1672 size_t count, loff_t *ppos)
1681 if (count >= sizeof(temp) || count == 0)
1684 if (copy_from_user(temp, buf, count) != 0)
1687 temp[count] = '\0';
1707 return count;
1720 * @count: maximum to send along
1726 size_t count, loff_t *ppos)
1735 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1744 * @count: bytes sent
1750 size_t count, loff_t *ppos)
1759 if (count >= sizeof(temp) || count == 0)
1762 if (copy_from_user(temp, buf, count) != 0)
1765 temp[count] = '\0';
1785 return count;
1835 * @count: bytes sent
1841 size_t count, loff_t *ppos)
1846 int rc = count;
1852 if (count == 0 || count > PAGE_SIZE)
1855 data = memdup_user_nul(buf, count);
1859 skp = smk_import_entry(data, count);
2011 * @count: bytes sent
2017 size_t count, loff_t *ppos)
2026 if (count > PAGE_SIZE)
2029 data = memdup_user_nul(buf, count);
2044 * The invalid label must be first to count as clearing attempt.
2050 rc = count;
2101 * @count: bytes sent
2107 size_t count, loff_t *ppos)
2111 int rc = count;
2116 if (count > PAGE_SIZE)
2119 data = memdup_user_nul(buf, count);
2132 skp = smk_import_entry(data, count);
2158 * @count: maximum to send along
2164 size_t count, loff_t *ppos)
2173 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
2181 * @count: bytes sent
2187 size_t count, loff_t *ppos)
2195 if (count >= sizeof(temp) || count == 0)
2198 if (copy_from_user(temp, buf, count) != 0)
2201 temp[count] = '\0';
2208 return count;
2272 * @count: bytes sent
2277 size_t count, loff_t *ppos)
2281 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
2297 * @count: bytes sent
2302 size_t count, loff_t *ppos, int format)
2308 data = simple_transaction_get(file, buf, count);
2313 if (count < SMK_LOADLEN)
2339 return count;
2346 * @count: bytes sent
2350 size_t count, loff_t *ppos)
2352 return smk_user_access(file, buf, count, ppos, SMK_FIXED24_FMT);
2403 * @count: bytes sent
2408 size_t count, loff_t *ppos)
2416 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2480 * @count: bytes sent
2485 size_t count, loff_t *ppos)
2489 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
2505 * @count: bytes sent
2509 size_t count, loff_t *ppos)
2511 return smk_user_access(file, buf, count, ppos, SMK_LONG_FMT);
2525 * @count: bytes sent
2529 size_t count, loff_t *ppos)
2537 int rc = count;
2545 if (count == 0 || count > SMK_LONGLABEL)
2548 data = memdup_user(buf, count);
2552 cp = smk_parse_smack(data, count);
2600 * @count: bytes sent
2604 size_t count, loff_t *ppos)
2612 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2660 * @count: bytes sent
2666 size_t count, loff_t *ppos)
2670 int rc = count;
2676 if (count == 0 || count > PAGE_SIZE)
2679 data = memdup_user_nul(buf, count);
2683 skp = smk_import_entry(data, count);
2753 * @count: bytes sent
2758 size_t count, loff_t *ppos)
2776 if (count == 0 || count > PAGE_SIZE)
2779 data = memdup_user_nul(buf, count);
2799 return count;
2818 * @count: maximum to send along
2824 size_t count, loff_t *ppos)
2833 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
2841 * @count: bytes sent
2845 size_t count, loff_t *ppos)
2853 if (*ppos != 0 || count >= sizeof(temp) || count == 0)
2856 if (copy_from_user(temp, buf, count) != 0)
2859 temp[count] = '\0';
2867 return count;