Documentation
¶
Overview ¶
Package ownerfile makes files accessible to their owner only and checks that they are: mode 0600 and no group or other bits on POSIX, and on Windows, which has no mode bits, a DACL (D68).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNew ¶
CreateNew creates the file at path, which must not exist, for reading and writing by its owner only (mode 0600) from the moment it exists.
func CreateTemp ¶
CreateTemp creates a new temporary file in dir, as os.CreateTemp does, which already creates it with mode 0600.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.