d1c0ca5260
This wonderfully large commit replaces basically everything under the `server/filesystem` package, re-implementing essentially everything. This is related to https://github.com/pterodactyl/wings/security/advisories/GHSA-494h-9924-xww9 If any vulnerabilities related to symlinks persist after this commit, I will be very upset. Signed-off-by: Matthew Penner <me@matthewp.io>
13 lines
557 B
Go
13 lines
557 B
Go
// SPDX-License-Identifier: MIT
|
|
// SPDX-FileCopyrightText: Copyright (c) 2024 Matthew Penner
|
|
|
|
// Package ufs provides an abstraction layer for performing I/O on filesystems.
|
|
// This package is designed to be used in-place of standard `os` package I/O
|
|
// calls, and is not designed to be used as a generic filesystem abstraction
|
|
// like the `io/fs` package.
|
|
//
|
|
// The primary use-case of this package was to provide a "chroot-like" `os`
|
|
// wrapper, so we can safely sandbox I/O operations within a directory and
|
|
// use untrusted arbitrary paths.
|
|
package ufs
|