Skip to main content

Module private_files

Module private_files 

Source
Expand description

files trusted only when this user wrote them (format dump caches) Files trusted only when this user wrote them. A format dump is loaded as the format, and the caches holding dumps live in shared places ($TMPDIR), where another local user could put a file, or a directory, there first.

Functions§

private_dir
Creates dir for this user alone, or makes it private if this user owns it, and requires it to be a trusted_dir.
private_to_user
Whether path is this user’s own and no one else can write to it, and is not a symbolic link.
publish_read_only
Makes the file at path readable by all and writable by this user alone (0644), as a file private_to_user accepts must be whatever the umask.
trusted_dir
Whether dir is private to this user inside a directory this user or the superuser owns, so no one else can have put it, or what it holds, there.
user_id
The process’s effective user id.