mmap_min_addr and security modules
Posted Jul 20, 2009 21:53 UTC (Mon) by
corbet (editor, #1)
In reply to:
mmap_min_addr and security modules by fjpop
Parent article:
Fun with NULL pointers, part 1
The code which performs the check was:
static inline unsigned long round_hint_to_min(unsigned long hint)
{
#ifdef CONFIG_SECURITY
hint &= PAGE_MASK;
if (((void *)hint != NULL) &&
(hint < mmap_min_addr))
return PAGE_ALIGN(mmap_min_addr);
#endif
return hint;
}
So it was taken out at compile time; the presence of an actual security module is not really relevant.
(
Log in to post comments)