writing zero bytes in bash
Alan Cox
alan at redhat.com
Tue Mar 1 14:33:14 UTC 2005
On Sat, Feb 26, 2005 at 05:54:26PM +0000, Tim Waugh wrote:
> > To unset the fscreate or exec context you have to write zero bytes
> > to /proc/self/attr/fscreate or /proc/self/attr/exec respectively.
>
> Oh dear, really? How badly designed. The man page for write() says
> that writing no bytes causes write() to return 0 "without causing any
> other effect".
Actually its worse than that, for some situations the kernel enforces that
behaviour and you *can't* propogate a zero byte write.
More information about the fedora-devel-list
mailing list