Merge tag 'tomoyo-pr-20200601' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1
[linux-2.6-microblaze.git] / security / tomoyo / common.c
index 1b46738..c16b8c1 100644 (file)
@@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head,
        if (domain)
                head->r.domain = &domain->list;
        else
-               head->r.eof = 1;
+               head->r.eof = true;
        tomoyo_io_printf(head, "# select %s\n", data);
        if (domain && domain->is_deleted)
                tomoyo_io_printf(head, "# This is a deleted domain.\n");
@@ -2662,8 +2662,6 @@ ssize_t tomoyo_write_control(struct tomoyo_io_buffer *head,
 
        if (!head->write)
                return -EINVAL;
-       if (!access_ok(buffer, buffer_len))
-               return -EFAULT;
        if (mutex_lock_interruptible(&head->io_sem))
                return -EINTR;
        head->read_user_buf_avail = 0;