Research Menu

.
Skip Search Box
SELinux Mailing List

Re: [PATCH -v2 1/2] VM/SELinux: require CAP_SYS_RAWIO for all mmap_zero operations

From: James Morris <jmorris_at_namei.org>
Date: Wed, 22 Jul 2009 19:23:27 +1000 (EST)


On Tue, 21 Jul 2009, Eric Paris wrote:

> +
> + if ((addr < mmap_min_addr) && !capable(CAP_SYS_RAWIO))
> + return -EACCES;

Please make this check a static inline. Less chance of someone breaking it, or it having some subtle bug, and easier to maintain.

> address &= PAGE_MASK;
> +

Whitespace leak.

  • James -- James Morris <jmorris@namei.org>
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Wed 22 Jul 2009 - 05:24:39 EDT
 

Date Posted: Nov 14, 2008 | Last Modified: Mar 19, 2010 | Last Reviewed: Mar 19, 2010

 
bottom

National Security Agency / Central Security Service