permcheck

package
v0.107.61 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package permcheck contains code for simplifying permissions checks on files and directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(
	ctx context.Context,
	l *slog.Logger,
	workDir string,
	dataDir string,
	statsDir string,
	querylogDir string,
	confFilePath string,
)

Check checks the permissions on important files. It logs the results at appropriate levels.

func Migrate

func Migrate(
	ctx context.Context,
	l *slog.Logger,
	workDir string,
	dataDir string,
	statsDir string,
	querylogDir string,
	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(ctx context.Context, l *slog.Logger, workDir, confFilePath string) (ok bool)

NeedsMigration returns true if AdGuard Home files need permission migration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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