Quoting Cyrill Gorcunov (gorcu...@openvz.org): > > The kernel makes the decision on what is valid via security_mmap_addr(). > > Assuming there are no security fears of an untrusted application > > tricking some priviledged application to set up these maps the answer is > > just calling security_mmap_addr() instead of doing if(addr < > > mmap_min_addr) return -EINVAL; > > If only I've not missed something obvious, the check for security_mmap_addr() > here > instead of poking the mmap_min_addr looks more correct for me. Andrew?
That sounds right to me as well. -serge -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/