On my environment, all machines are locked down with selinux. The script writes to a temporary file, which requires an exception from selinux. Instead, I've opted to work with an in-memory buffer, so no files need to be written to disk. I've left most of the buffer intact, as StringIO supports file-like operations (write / close etc).
On my environment, all machines are locked down with selinux. The script writes to a temporary file, which requires an exception from selinux. Instead, I've opted to work with an in-memory buffer, so no files need to be written to disk. I've left most of the buffer intact, as
StringIO
supports file-like operations (write / close etc).