carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build linux
2
3package layout
4
5import "golang.org/x/sys/unix"
6
7// syscallNofollow and syscallNonblock make ReadJournal refuse a symlink or
8// a special file planted at the journal path instead of following it or
9// blocking on it (a flat tenant shares the agent's uid during the
10// transition). Only meaningful on the platform the agent actually runs on;
11// see journal_other.go for why the build still needs a definition
12// everywhere.
13const (
14 syscallNofollow = unix.O_NOFOLLOW
15 syscallNonblock = unix.O_NONBLOCK
16)
17