Re: selinux + livecd-creator, May 20, 2008

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

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

# create a string with a single NULL byte
s = '\0'
# write the string
f.write(s)

# close the file
f.close()

--
John Dennis <jdennis@xxxxxxxxxx>

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux