writing zero bytes in bash

Russell Coker russell at coker.com.au
Sat Feb 26 10:32:50 UTC 2005


On Saturday 26 February 2005 19:12, Jeff Pitman <symbiont at berlios.de> wrote:
> On Saturday 26 February 2005 15:32, Russell Coker wrote:
> > To unset the fscreate or exec context you have to call write(fd, X,
> > 0) (the value of X doesn't seem to matter as the kernel code doesn't
> > dereference it).
>
> dd

I'm not sure what you are saying here.  Are you suggesting to use dd to write 
zero bytes or that bash should work in a similar way to dd?

dd does not seem capable of actually doing a write of 0.  If you use bs=0 then 
it gives an error code, if you use count=0 then it does nothing (like bash).  
Maybe this should be considered a bug in dd as well, but let's concentrate on 
bash for the moment.

This isn't the type of issue that can be addressed with a one-word reply.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




More information about the fedora-devel-list mailing list