Messages in this thread | | | Date | Tue, 17 Aug 2004 07:23:02 +0200 | From | Olaf Hering <> | Subject | Re: /bin/ls: cannot read symbolic link /proc/$$/exe: Permission denied |
| |
On Tue, Aug 17, Andreas Schwab wrote:
> Olaf Hering <olh@suse.de> writes: > > > On Mon, Aug 16, Olaf Hering wrote: > > > >> > >> For some reasons ls -l /proc/$$/exe doesnt work all time for me, > >> with 2.6.8.1 on ppc64. Sometimes it does, sometimes not. No pattern. > >> A few printks show that this check in proc_pid_readlink() triggers > >> an -EACCES: > >> > >> current->fsuid != inode->i_uid > >> > >> proc_pid_readlink(755) error -13 ntptrace(11408) fsuid 100 i_uid 0 0 > >> sys_readlink(281) ntptrace(11408) error -13 readlink > > > > A better one, clear both new fields, just in case. > > memset?
perhaps too expensive, no idea.
-- USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |