Lines Matching defs:buf
29 * Contents of @buf may be modified.
31 static int parse_policy_line(struct file *file, char *buf,
38 /* Format of |buf| string should be <UID>:<UID> or <GID>:<GID> */
39 child_str = strchr(buf, ':');
45 ret = kstrtou32(buf, 0, &parsed_parent);
143 char *buf, *p, *end;
153 p = buf = memdup_user_nul(ubuf, len);
154 if (IS_ERR(buf)) {
155 err = PTR_ERR(buf);
158 pol->policy_str = kstrdup(buf, GFP_KERNEL);
228 kfree(buf);
236 const char __user *buf,
246 return handle_policy_update(file, buf, len, UID);
250 const char __user *buf,
260 return handle_policy_update(file, buf, len, GID);
263 static ssize_t safesetid_file_read(struct file *file, char __user *buf,
274 res = simple_read_from_buffer(buf, len, ppos,
282 static ssize_t safesetid_uid_file_read(struct file *file, char __user *buf,
285 return safesetid_file_read(file, buf, len, ppos,
289 static ssize_t safesetid_gid_file_read(struct file *file, char __user *buf,
292 return safesetid_file_read(file, buf, len, ppos,