Re: does access_ok() even care about the READ/WRITE type anymore?

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

 



Hi Robert...

On Thu, Sep 24, 2009 at 11:46 PM, Robert P. J. Day
<rpjday@xxxxxxxxxxxxxx> wrote:
>  but note that this isn't just for x86.  i did a scan of the whole
> tree, and i didn't find a single architecture that checked that first
> argument.  at least not anymore.  unless i somehow screwed up my
> search command.
>
>  can you tell if any arch actually checks that first arg?

Not exactly "checking", but pls check
http://lxr.linux.no/#linux+v2.6.31/arch/sparc/include/asm/uaccess_32.h#L49.
There you will a kinda strange macro (at least for me) ....
(void)(type) then followed by __access_ok() macro.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux