Bug 13164 - insecure /tmp usage

Summary: insecure /tmp usage