Bug 582810 - mmap_min_addr file isn't readable by non-root
Summary: mmap_min_addr file isn't readable by non-root
Keywords:
Status: CLOSED DUPLICATE of bug 583292
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-15 20:23 UTC by Richard Henderson
Modified: 2010-04-21 16:52 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-04-21 16:52:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Richard Henderson 2010-04-15 20:23:54 UTC
Description of problem:
/proc/sys/vm/mmap_min_addr isn't properly readable.

Version-Release number of selected component (if applicable):
2.6.32.11-99.fc12.x86_64

How reproducible:
Always

Steps to Reproduce:

$ ls -l /proc/sys/vm/mmap_min_addr 
-rw-r--r-- 1 root root 0 2010-04-15 09:55 /proc/sys/vm/mmap_min_addr
$ cat /proc/sys/vm/mmap_min_addr 
cat: /proc/sys/vm/mmap_min_addr: Operation not permitted

Excerpt from the strace of the cat process reveals:

open("/proc/sys/vm/mmap_min_addr", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
read(3, 0x60e000, 32768)                = -1 EPERM (Operation not permitted)

Note that the open succeeds, as would be expected by the
permissions indicated on the file.  But somehow the read
is actually failing.  The read succeeds as root.

Comment 1 Chuck Ebbert 2010-04-21 16:52:51 UTC

*** This bug has been marked as a duplicate of bug 583292 ***


Note You need to log in before you can comment on or make changes to this bug.