summaryrefslogtreecommitdiffhomepage
path: root/util/quarantine/quarantine.go
blob: 7ad65a81d69ee2fb6389f5591e71cc62ec28b0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause

// Package quarantine sets platform specific "quarantine" attributes on files
// that are received from other hosts.
package quarantine

import "os"

// SetOnFile sets the platform-specific quarantine attribute (if any) on the
// provided file.
func SetOnFile(f *os.File) error {
	return setQuarantineAttr(f)
}