Re: Readlink: permission denied -- now: proc filesystem

2012-05-23 Thread G.Wolfe Woodbury
On 05/23/2012 11:22 PM, JD wrote: On 05/23/2012 07:51 PM, Ed Greshko wrote: The /proc file system is not a real file system. It is a "pseudo-file system", see "man proc". AFAIK, it is under the control of the kernel and doesn't or may not act as one may expect. So, the /proc file system all

Re: Readlink: permission denied

2012-05-23 Thread Cameron Simpson
On 23May2012 19:37, JD wrote: | So what there are entries there that are root owned, | and some of them have root only access perms: | -r 1 root root 0 May 23 11:48 auxv | --w--- 1 root root 0 May 23 11:48 clear_refs | -r 1 root root 0 May 23 11:48 environ | dr-x-- 2 root r

Re: Readlink: permission denied

2012-05-23 Thread JD
On 05/23/2012 07:51 PM, Ed Greshko wrote: The /proc file system is not a real file system. It is a "pseudo-file system", see "man proc". AFAIK, it is under the control of the kernel and doesn't or may not act as one may expect. I'm not into kernel development. So, the what is and wherefores

Re: Readlink: permission denied

2012-05-23 Thread Ed Greshko
On 05/24/2012 10:40 AM, JD wrote: > Yes Ed, I do see this behavior. > But I am puzzled as to how such resources were > somehow accessed by a process that has no root privs? The /proc file system is not a real file system. It is a "pseudo-file system", see "man proc". AFAIK, it is under the con

Re: Readlink: permission denied

2012-05-23 Thread JD
On 05/23/2012 07:28 PM, Ed Greshko wrote: On 05/24/2012 10:02 AM, Cameron Simpson wrote: Sigh. Which is why I asked you to run some ls commands, to _inspect_ the permissions. What do they show? I don't know about you, but I'm not sure that things involving the /proc file system act in quite th

Re: Readlink: permission denied

2012-05-23 Thread JD
On 05/23/2012 07:02 PM, Cameron Simpson wrote: On 23May2012 18:46, JD wrote: | On 05/23/2012 02:59 PM, Cameron Simpson wrote: |> On 23May2012 12:13, JD wrote: |> | Why would I be denied access to info of files opened by processes |> | running with my uid? |> | This is a bug. |> | |> | To

Re: Readlink: permission denied

2012-05-23 Thread Ed Greshko
On 05/24/2012 10:02 AM, Cameron Simpson wrote: > Sigh. Which is why I asked you to run some ls commands, to _inspect_ the > permissions. What do they show? I don't know about you, but I'm not sure that things involving the /proc file system act in quite the same manner as a real file system. Tak

Re: Readlink: permission denied

2012-05-23 Thread Cameron Simpson
On 23May2012 18:46, JD wrote: | On 05/23/2012 02:59 PM, Cameron Simpson wrote: | > On 23May2012 12:13, JD wrote: | > | Why would I be denied access to info of files opened by processes | > | running with my uid? | > | This is a bug. | > | | > | To wit: | > | COMMAND PID TIDUSER FD

Re: Readlink: permission denied

2012-05-23 Thread JD
On 05/23/2012 02:59 PM, Cameron Simpson wrote: On 23May2012 12:13, JD wrote: | Why would I be denied access to info of files opened by processes | running with my uid? | This is a bug. | | To wit: | COMMAND PID TIDUSER FD TYPE DEVICE SIZE/OFF | NODE NAME | gnome-key 1707

Re: Readlink: permission denied

2012-05-23 Thread Cameron Simpson
On 23May2012 12:13, JD wrote: | Why would I be denied access to info of files opened by processes | running with my uid? | This is a bug. | | To wit: | COMMAND PID TIDUSER FD TYPE DEVICE SIZE/OFF | NODE NAME | gnome-key 1707jd cwd unknown

Re: Readlink: permission denied

2012-05-23 Thread Reindl Harald
Am 23.05.2012 21:13, schrieb JD: >>> The full output of lsof | sort | uniq is at >>> http://www.sendspace.com/file/0v2lgb >>> >>> what is the consequence of these failures on the rest of the system? >> >> have you considered calling such commands as root instead >> as normal user? it is logical

Re: Readlink: permission denied

2012-05-23 Thread JD
On 05/23/2012 11:43 AM, Reindl Harald wrote: Am 23.05.2012 20:38, schrieb JD: fc16 - with latest updates. Running lsof, I see a plethora of output like: systemd 1 root cwd unknown/proc/1/cwd (readlink: Permission denied) systemd 1 root rtd unknown/p

Re: Readlink: permission denied

2012-05-23 Thread Reindl Harald
Am 23.05.2012 20:38, schrieb JD: > fc16 - with latest updates. > > Running lsof, I see a plethora of output like: > > systemd 1 root cwd unknown/proc/1/cwd (readlink: > Permission denied) > systemd 1 root rtd unknown/proc/1/root (readlink: > Permissio