Documentation
¶
Overview ¶
Package pathguard refuses database writes under operating-system directories. Creating or writing a signature database in a system root could let an attacker who controls the database path overwrite binaries or configuration when the process runs with elevated privileges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWritable ¶
CheckWritable returns an error if path lies under a system directory, either as written or after resolving symlinks. Symlinks are resolved in the longest prefix of path that exists, so a database that does not exist yet cannot be placed under a system directory through a symlinked parent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.