permcheck

package
v0.107.53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

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

func NeedsMigration(confFilePath string) (ok bool)

NeedsMigration returns true if AdGuard Home files need permission migration.

TODO(a.garipov): Consider ways to detect this better.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL