On Wed 22 Jul 2009, Jonathan Swartz wrote:
> I'm running into the problem using Linux::Smaps on RHEL with an
> Apache server on port 80. Namely, that the httpd child doesn't have
> permissions to look at the smaps file.
>
> Linux::Smaps: Cannot open /proc/20074/smaps: Permission denied
>
Jonathan,
I've tested on Redhat Nahant (RHEL4, i don't like it but my situation is
similar to yours), an effectively the permissions are very tight, 600 for the
smaps file. Let's look at the smaps of the current process (bash in this case):
[h...@led ~]$ ls -l /proc/$$/smaps
-r 1 hans