Lines Matching defs:count

446  * @count: bytes sent
462 size_t count, loff_t *ppos,
484 if (count < SMK_OLOADLEN || count > SMK_LOADLEN)
487 if (count >= PAGE_SIZE) {
488 count = PAGE_SIZE - 1;
493 data = kmalloc(count + 1, GFP_KERNEL);
497 if (copy_from_user(data, buf, count) != 0) {
507 while (count > 0 && (data[count - 1] != '\n'))
508 --count;
509 if (count == 0) {
515 data[count] = '\0';
517 while (cnt < count) {
524 cnt = count;
682 * @count: bytes sent
687 size_t count, loff_t *ppos)
697 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
853 * @count: bytes sent
861 size_t count, loff_t *ppos, int format)
885 (count < SMK_CIPSOMIN || count > SMK_CIPSOMAX))
888 data = kzalloc(count + 1, GFP_KERNEL);
892 if (copy_from_user(data, buf, count) != 0) {
897 data[count] = '\0';
924 count != (SMK_CIPSOMIN + catlen * SMK_DIGITLEN))
943 rc = count;
957 * @count: bytes sent
964 size_t count, loff_t *ppos)
966 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT);
1031 * @count: bytes sent
1038 size_t count, loff_t *ppos)
1040 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT);
1152 * @count: bytes sent
1159 size_t count, loff_t *ppos)
1187 if (count < SMK_NETLBLADDRMIN)
1190 data = kzalloc(count + 1, GFP_KERNEL);
1194 if (copy_from_user(data, buf, count) != 0) {
1199 smack = kzalloc(count + 1, GFP_KERNEL);
1205 data[count] = '\0';
1301 rc = count;
1325 * @count: maximum to send along
1331 size_t count, loff_t *ppos)
1340 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1349 * @count: bytes sent
1355 size_t count, loff_t *ppos)
1363 if (count >= sizeof(temp) || count == 0)
1366 if (copy_from_user(temp, buf, count) != 0)
1369 temp[count] = '\0';
1378 return count;
1391 * @count: maximum to send along
1397 size_t count, loff_t *ppos)
1406 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1415 * @count: bytes sent
1421 size_t count, loff_t *ppos)
1430 if (count >= sizeof(temp) || count == 0)
1433 if (copy_from_user(temp, buf, count) != 0)
1436 temp[count] = '\0';
1456 return count;
1469 * @count: maximum to send along
1475 size_t count, loff_t *ppos)
1484 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1493 * @count: bytes sent
1499 size_t count, loff_t *ppos)
1508 if (count >= sizeof(temp) || count == 0)
1511 if (copy_from_user(temp, buf, count) != 0)
1514 temp[count] = '\0';
1534 return count;
1584 * @count: bytes sent
1590 size_t count, loff_t *ppos)
1595 int rc = count;
1600 data = kzalloc(count + 1, GFP_KERNEL);
1604 if (copy_from_user(data, buf, count) != 0) {
1609 skp = smk_import_entry(data, count);
1668 * @count: bytes sent
1674 size_t count, loff_t *ppos)
1678 int rc = count;
1691 data = kzalloc(count + 1, GFP_KERNEL);
1705 if (copy_from_user(data, buf, count) != 0)
1708 smack_onlycap = smk_import_entry(data, count);
1730 size_t count, loff_t *ppos)
1739 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1747 * @count: bytes sent
1753 size_t count, loff_t *ppos)
1761 if (count >= sizeof(temp) || count == 0)
1764 if (copy_from_user(temp, buf, count) != 0)
1767 temp[count] = '\0';
1774 return count;
1838 * @count: bytes sent
1843 size_t count, loff_t *ppos)
1847 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
1863 * @count: bytes sent
1867 size_t count, loff_t *ppos, int format)
1873 data = simple_transaction_get(file, buf, count);
1878 if (count < SMK_LOADLEN)
1904 return count;
1911 * @count: bytes sent
1915 size_t count, loff_t *ppos)
1917 return smk_user_access(file, buf, count, ppos, SMK_FIXED24_FMT);
1966 * @count: bytes sent
1971 size_t count, loff_t *ppos)
1979 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2043 * @count: bytes sent
2048 size_t count, loff_t *ppos)
2052 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
2068 * @count: bytes sent
2072 size_t count, loff_t *ppos)
2074 return smk_user_access(file, buf, count, ppos, SMK_LONG_FMT);
2088 * @count: bytes sent
2092 size_t count, loff_t *ppos)
2100 int rc = count;
2108 if (count == 0 || count > SMK_LONGLABEL)
2111 data = kzalloc(count, GFP_KERNEL);
2115 if (copy_from_user(data, buf, count) != 0) {
2120 cp = smk_parse_smack(data, count);
2170 * @count: bytes sent
2174 size_t count, loff_t *ppos)
2182 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2230 * @count: bytes sent
2236 size_t count, loff_t *ppos)
2240 int rc = count;
2245 data = kzalloc(count + 1, GFP_KERNEL);
2249 if (copy_from_user(data, buf, count) != 0)
2252 skp = smk_import_entry(data, count);
2256 smack_syslog_label = smk_import_entry(data, count);
2274 * @count: maximum to send along
2280 size_t count, loff_t *ppos)
2289 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
2297 * @count: bytes sent
2301 size_t count, loff_t *ppos)
2309 if (*ppos != 0 || count >= sizeof(temp) || count == 0)
2312 if (copy_from_user(temp, buf, count) != 0)
2315 temp[count] = '\0';
2323 return count;