1// SPDX-License-Identifier: BSD-3-Clause
 2
 3// Copyright (C) 2014-2015 Docker Inc & Go Authors. All rights reserved.
 4// Copyright (C) 2017-2025 SUSE LLC. All rights reserved.
 5// Use of this source code is governed by a BSD-style
 6// license that can be found in the LICENSE file.
 7
 8// Package consts contains the definitions of internal constants used
 9// throughout filepath-securejoin.
10package consts
11
12// MaxSymlinkLimit is the maximum number of symlinks that can be encountered
13// during a single lookup before returning -ELOOP. At time of writing, Linux
14// has an internal limit of 40.
15const MaxSymlinkLimit = 255