summaryrefslogtreecommitdiff
path: root/internal/io/fs/permissions/permission.go
blob: 889fe9e57c082e6a85fbf6b18f3773e722ba14ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//go:build !linuxacl

package permissions

import (
	"github.com/mimecast/dtail/internal/io/dlog"
)

// ToRead is to check whether user has read permissions to a given file.
func ToRead(user, filePath string) (bool, error) {
	// Only implemented for Linux, always expect true
	dlog.Common.Debug(user, filePath, "Not performing ACL check as not compiled in")
	return true, nil
}