Lines Matching defs:buf
428 * @buf: where to get the data from
444 static ssize_t smk_write_rules_list(struct file *file, const char __user *buf,
476 data = memdup_user_nul(buf, count);
481 * In case of parsing only part of user buf,
653 * @buf: where to get the data from
658 static ssize_t smk_write_load(struct file *file, const char __user *buf,
669 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
822 * @buf: where to get the data from
830 static ssize_t smk_set_cipso(struct file *file, const char __user *buf,
861 data = memdup_user_nul(buf, count);
955 * @buf: where to get the data from
962 static ssize_t smk_write_cipso(struct file *file, const char __user *buf,
965 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT);
1029 * @buf: where to get the data from
1036 static ssize_t smk_write_cipso2(struct file *file, const char __user *buf,
1039 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT);
1148 * @buf: where to get the data from
1155 static ssize_t smk_write_net4addr(struct file *file, const char __user *buf,
1188 data = memdup_user_nul(buf, count);
1410 * @buf: where to get the data from
1417 static ssize_t smk_write_net6addr(struct file *file, const char __user *buf,
1447 data = memdup_user_nul(buf, count);
1575 * @buf: where to put the result
1581 static ssize_t smk_read_doi(struct file *filp, char __user *buf,
1591 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1599 * @buf: where to get the data from
1605 static ssize_t smk_write_doi(struct file *file, const char __user *buf,
1617 if (copy_from_user(temp, buf, count) != 0)
1641 * @buf: where to put the result
1647 static ssize_t smk_read_direct(struct file *filp, char __user *buf,
1657 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1665 * @buf: where to get the data from
1671 static ssize_t smk_write_direct(struct file *file, const char __user *buf,
1684 if (copy_from_user(temp, buf, count) != 0)
1719 * @buf: where to put the result
1725 static ssize_t smk_read_mapped(struct file *filp, char __user *buf,
1735 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
1743 * @buf: where to get the data from
1749 static ssize_t smk_write_mapped(struct file *file, const char __user *buf,
1762 if (copy_from_user(temp, buf, count) != 0)
1797 * @buf: where to put the result
1803 static ssize_t smk_read_ambient(struct file *filp, char __user *buf,
1820 rc = simple_read_from_buffer(buf, cn, ppos,
1834 * @buf: where to get the data from
1840 static ssize_t smk_write_ambient(struct file *file, const char __user *buf,
1855 data = memdup_user_nul(buf, count);
2010 * @buf: where to get the data from
2016 static ssize_t smk_write_onlycap(struct file *file, const char __user *buf,
2029 data = memdup_user_nul(buf, count);
2070 * @buf: where to put the result
2076 static ssize_t smk_read_unconfined(struct file *filp, char __user *buf,
2092 rc = simple_read_from_buffer(buf, cn, ppos, smack, asize);
2100 * @buf: where to get the data from
2106 static ssize_t smk_write_unconfined(struct file *file, const char __user *buf,
2119 data = memdup_user_nul(buf, count);
2157 * @buf: where to put the result
2163 static ssize_t smk_read_logging(struct file *filp, char __user *buf,
2173 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
2180 * @buf: where to get the data from
2186 static ssize_t smk_write_logging(struct file *file, const char __user *buf,
2198 if (copy_from_user(temp, buf, count) != 0)
2271 * @buf: where to get the data from
2276 static ssize_t smk_write_load_self(struct file *file, const char __user *buf,
2281 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
2296 * @buf: data from user space
2301 static ssize_t smk_user_access(struct file *file, const char __user *buf,
2308 data = simple_transaction_get(file, buf, count);
2345 * @buf: data from user space
2349 static ssize_t smk_write_access(struct file *file, const char __user *buf,
2352 return smk_user_access(file, buf, count, ppos, SMK_FIXED24_FMT);
2402 * @buf: where to get the data from
2407 static ssize_t smk_write_load2(struct file *file, const char __user *buf,
2416 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2479 * @buf: where to get the data from
2484 static ssize_t smk_write_load_self2(struct file *file, const char __user *buf,
2489 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules,
2504 * @buf: data from user space
2508 static ssize_t smk_write_access2(struct file *file, const char __user *buf,
2511 return smk_user_access(file, buf, count, ppos, SMK_LONG_FMT);
2524 * @buf: data from user space
2528 static ssize_t smk_write_revoke_subj(struct file *file, const char __user *buf,
2548 data = memdup_user(buf, count);
2599 * @buf: data from user space
2603 static ssize_t smk_write_change_rule(struct file *file, const char __user *buf,
2612 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
2626 * @buf: where to put the result
2632 static ssize_t smk_read_syslog(struct file *filp, char __user *buf,
2650 rc = simple_read_from_buffer(buf, cn, ppos, skp->smk_known,
2659 * @buf: where to get the data from
2665 static ssize_t smk_write_syslog(struct file *file, const char __user *buf,
2679 data = memdup_user_nul(buf, count);
2752 * @buf: where to get the data from
2757 static ssize_t smk_write_relabel_self(struct file *file, const char __user *buf,
2779 data = memdup_user_nul(buf, count);
2817 * @buf: where to put the result
2823 static ssize_t smk_read_ptrace(struct file *filp, char __user *buf,
2833 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp));
2840 * @buf: data from user space
2844 static ssize_t smk_write_ptrace(struct file *file, const char __user *buf,
2856 if (copy_from_user(temp, buf, count) != 0)