Re: [Bugme-new] [Bug 10284] New: executables with read bit 'off'cannot open /dev/stdin

From: Arjan van de Ven
Date: Thu Mar 20 2008 - 00:04:24 EST


On Wed, 19 Mar 2008 19:56:50 -0600
Matthew Wilcox <matthew@xxxxxx> wrote:


> I've tried this program on 2.6.25-rc3-00093-g59e1338-dirty and it does
> not fail.
>
> > > open("/dev/stdin", O_RDONLY) = -1 EACCES (Permission
> > > denied)
>
> Specifically, my tests show:
>
> open-stdin-readable:open("/dev/stdin", O_RDONLY) = 3
> open-stdin-unreadable:open("/dev/stdin", O_RDONLY) = 3
>
> Joe, can you try a more recent kernel?

another interesting question is if you're using some special LSM/security stuff..


--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/