Lines Matching refs:buffer
188 static void tomoyo_addprintf(char *buffer, int len, const char *fmt, ...) in tomoyo_addprintf() argument
191 const int pos = strlen(buffer); in tomoyo_addprintf()
194 vsnprintf(buffer + pos, len - pos - 1, fmt, args); in tomoyo_addprintf()
431 char buffer[128]; in tomoyo_print_number_union_nospace() local
433 buffer[0] = '\0'; in tomoyo_print_number_union_nospace()
437 tomoyo_addprintf(buffer, sizeof(buffer), in tomoyo_print_number_union_nospace()
441 tomoyo_addprintf(buffer, sizeof(buffer), in tomoyo_print_number_union_nospace()
445 tomoyo_addprintf(buffer, sizeof(buffer), "%lu", in tomoyo_print_number_union_nospace()
451 tomoyo_addprintf(buffer, sizeof(buffer), "-"); in tomoyo_print_number_union_nospace()
455 tomoyo_io_printf(head, "%s", buffer); in tomoyo_print_number_union_nospace()
1821 char buffer[128]; in tomoyo_read_group() local
1826 tomoyo_print_ip(buffer, sizeof(buffer), in tomoyo_read_group()
1828 tomoyo_io_printf(head, " %s", buffer); in tomoyo_read_group()
2020 static void tomoyo_patternize_path(char *buffer, const int len, char *entry) in tomoyo_patternize_path() argument
2041 tomoyo_addprintf(buffer, len, "%s ", entry); in tomoyo_patternize_path()
2045 tomoyo_addprintf(buffer, len, "pipe:[\\$]"); in tomoyo_patternize_path()
2051 tomoyo_addprintf(buffer, len, "socket:[\\$]"); in tomoyo_patternize_path()
2057 tomoyo_addprintf(buffer, len, "proc:/self"); in tomoyo_patternize_path()
2066 tomoyo_addprintf(buffer, len, "proc:/1"); in tomoyo_patternize_path()
2068 tomoyo_addprintf(buffer, len, "proc:/\\$"); in tomoyo_patternize_path()
2075 tomoyo_addprintf(buffer, len, "/task/\\$"); in tomoyo_patternize_path()
2080 tomoyo_addprintf(buffer, len, "/fd/\\$"); in tomoyo_patternize_path()
2083 tomoyo_addprintf(buffer, len, "/fdinfo/\\$"); in tomoyo_patternize_path()
2088 tomoyo_addprintf(buffer, len, "%s", cp); in tomoyo_patternize_path()
2101 char *buffer; in tomoyo_add_entry() local
2132 buffer = kmalloc(len, GFP_NOFS | __GFP_ZERO); in tomoyo_add_entry()
2133 if (!buffer) in tomoyo_add_entry()
2135 tomoyo_patternize_path(buffer, len, cp); in tomoyo_add_entry()
2137 tomoyo_addprintf(buffer, len, " exec.%s", realpath); in tomoyo_add_entry()
2139 tomoyo_addprintf(buffer, len, " exec.argv[0]=%s", argv0); in tomoyo_add_entry()
2141 tomoyo_addprintf(buffer, len, "%s", symlink); in tomoyo_add_entry()
2142 tomoyo_normalize_line(buffer); in tomoyo_add_entry()
2143 if (!tomoyo_write_domain2(domain->ns, &domain->acl_info_list, buffer, in tomoyo_add_entry()
2146 kfree(buffer); in tomoyo_add_entry()
2683 ssize_t tomoyo_read_control(struct tomoyo_io_buffer *head, char __user *buffer, in tomoyo_read_control() argument
2693 head->read_user_buf = buffer; in tomoyo_read_control()
2704 len = head->read_user_buf - buffer; in tomoyo_read_control()
2757 const char __user *buffer, const int buffer_len) in tomoyo_write_control() argument
2789 if (get_user(c, buffer)) { in tomoyo_write_control()
2793 buffer++; in tomoyo_write_control()