Documentation
¶
Overview ¶
Package permcheck contains code for simplifying permissions checks on files and directories.
TODO(a.garipov): Improve the approach on Windows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(workDir, dataDir, statsDir, querylogDir, confFilePath string)
Check checks the permissions on important files. It logs the results at appropriate levels.
func Migrate ¶
func Migrate(workDir, dataDir, statsDir, querylogDir, confFilePath string)
Migrate attempts to change the permissions of AdGuard Home's files. It logs the results at an appropriate level.
func NeedsMigration ¶
NeedsMigration returns true if AdGuard Home files need permission migration.
TODO(a.garipov): Consider ways to detect this better.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.