forked from toolshed/abra
		
	chore: go mod tidy / vendor / make deps
This commit is contained in:
		
							
								
								
									
										30
									
								
								vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								vendor/github.com/cyphar/filepath-securejoin/pathrs-lite/internal/errors.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| // Copyright (C) 2024-2025 Aleksa Sarai <cyphar@cyphar.com> | ||||
| // Copyright (C) 2024-2025 SUSE LLC | ||||
| // | ||||
| // This Source Code Form is subject to the terms of the Mozilla Public | ||||
| // License, v. 2.0. If a copy of the MPL was not distributed with this | ||||
| // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||||
|  | ||||
| // Package internal contains unexported common code for filepath-securejoin. | ||||
| package internal | ||||
|  | ||||
| import ( | ||||
| 	"errors" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	// ErrPossibleAttack indicates that some attack was detected. | ||||
| 	ErrPossibleAttack = errors.New("possible attack detected") | ||||
|  | ||||
| 	// ErrPossibleBreakout indicates that during an operation we ended up in a | ||||
| 	// state that could be a breakout but we detected it. | ||||
| 	ErrPossibleBreakout = errors.New("possible breakout detected") | ||||
|  | ||||
| 	// ErrInvalidDirectory indicates an unlinked directory. | ||||
| 	ErrInvalidDirectory = errors.New("wandered into deleted directory") | ||||
|  | ||||
| 	// ErrDeletedInode indicates an unlinked file (non-directory). | ||||
| 	ErrDeletedInode = errors.New("cannot verify path of deleted inode") | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user