Lines Matching refs:buffer
195 static void tomoyo_addprintf(char *buffer, int len, const char *fmt, ...) in tomoyo_addprintf() argument
198 const int pos = strlen(buffer); in tomoyo_addprintf()
200 vsnprintf(buffer + pos, len - pos - 1, fmt, args); in tomoyo_addprintf()
434 char buffer[128]; in tomoyo_print_number_union_nospace() local
435 buffer[0] = '\0'; in tomoyo_print_number_union_nospace()
439 tomoyo_addprintf(buffer, sizeof(buffer), in tomoyo_print_number_union_nospace()
443 tomoyo_addprintf(buffer, sizeof(buffer), in tomoyo_print_number_union_nospace()
447 tomoyo_addprintf(buffer, sizeof(buffer), "%lu", in tomoyo_print_number_union_nospace()
453 tomoyo_addprintf(buffer, sizeof(buffer), "-"); in tomoyo_print_number_union_nospace()
457 tomoyo_io_printf(head, "%s", buffer); in tomoyo_print_number_union_nospace()
1771 char buffer[128]; in tomoyo_read_group() local
1776 tomoyo_print_ip(buffer, sizeof(buffer), in tomoyo_read_group()
1778 tomoyo_io_printf(head, " %s", buffer); in tomoyo_read_group()
1938 char *buffer; in tomoyo_add_entry() local
1967 buffer = kmalloc(len, GFP_NOFS); in tomoyo_add_entry()
1968 if (!buffer) in tomoyo_add_entry()
1970 snprintf(buffer, len - 1, "%s", cp); in tomoyo_add_entry()
1972 tomoyo_addprintf(buffer, len, " exec.%s", realpath); in tomoyo_add_entry()
1974 tomoyo_addprintf(buffer, len, " exec.argv[0]=%s", argv0); in tomoyo_add_entry()
1976 tomoyo_addprintf(buffer, len, "%s", symlink); in tomoyo_add_entry()
1977 tomoyo_normalize_line(buffer); in tomoyo_add_entry()
1978 if (!tomoyo_write_domain2(domain->ns, &domain->acl_info_list, buffer, in tomoyo_add_entry()
1981 kfree(buffer); in tomoyo_add_entry()
2511 ssize_t tomoyo_read_control(struct tomoyo_io_buffer *head, char __user *buffer, in tomoyo_read_control() argument
2521 head->read_user_buf = buffer; in tomoyo_read_control()
2532 len = head->read_user_buf - buffer; in tomoyo_read_control()
2584 const char __user *buffer, const int buffer_len) in tomoyo_write_control() argument
2592 if (!access_ok(VERIFY_READ, buffer, buffer_len)) in tomoyo_write_control()
2614 if (get_user(c, buffer)) { in tomoyo_write_control()
2618 buffer++; in tomoyo_write_control()