diff options
| author | Graff Yang <[email protected]> | 2009-08-18 21:11:17 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-08-18 23:31:13 +0000 |
| commit | 28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca (patch) | |
| tree | 7db56042d0c3e6749c749e1608b3e699485326cf /security/selinux/hooks.c | |
| parent | spi_s3c24xx: fix transfer setup code (diff) | |
| download | kernel-28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca.tar.gz kernel-28d7a6ae92c099d81cbea08c20be0d2cf7ccd7ca.zip | |
nommu: check fd read permission in validate_mmap_request()
According to the POSIX (1003.1-2008), the file descriptor shall have been
opened with read permission, regardless of the protection options specified to
mmap(). The ltp test cases mmap06/07 need this.
Signed-off-by: Graff Yang <[email protected]>
Acked-by: Paul Mundt <[email protected]>
Signed-off-by: David Howells <[email protected]>
Acked-by: Greg Ungerer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
