Re: [GIT PATCH] UIO patches for 2.6.21

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >Right, this is just a hint, that something in user space is accessing
> >the hardware directly. Not a too bad idea, but pretty much useless when
> >we add X to the picture as it will be set always :)
> 
> Index: linux-2.6.21-mm_20040728/drivers/char/mem.c
> ===================================================================
> --- linux-2.6.21-mm_20040728.orig/drivers/char/mem.c
> +++ linux-2.6.21-mm_20040728/drivers/char/mem.c
> @@ -274,6 +274,9 @@ static int mmap_mem(struct file * file, 
>  	if (!private_mapping_ok(vma))
>  		return -ENOSYS;
>  
> +	if (strcmp(current->comm, "Xorg") != 0)
> +		tainted |= TAINT_USER;
> +

The X server has many names.  Xorg isn't the name of the server here for
example (its "X"). 

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux