selinux + livecd-creator, May 20, 2008

John Dennis jdennis at
Tue May 27 21:13:48 UTC 2008

> not sure, don't know how to get python to write a 0 without a null
> terminator or EOL or anything like that yet. FTW.
import os

# open a file for writing
f ='/tmp/foobar', os.O_WRONLY)

# create a string with a single NULL byte
s = '\0' 

# write the string

# close the file

John Dennis <jdennis at>

More information about the fedora-selinux-list mailing list