AbstractDelegateVFS
VFS: Backed Implementation
This class implements a virtual-file-system for guest use, backed by another "backing" file-system, to which calls are proxied from the guest. Before proxying each call, I/O security policy is checked and enforced, and logging is performed.
The provided config is expected to be fully loaded; that is, it should have a loaded filesystem tree and data-bag from which to pull file system information. The backing file system used by this class is closed when this class closes.
Parameters
VFS
Concrete virtual file system type under implementation.
config
Effective guest VFS configuration to apply.
backing
Backing file-system instance which implements the FS to use.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun checkAccess(path: Path, modes: MutableSet<out AccessMode>, vararg linkOptions: LinkOption)
Link copied to clipboard
fun checkPolicy(type: AccessType, domain: AccessDomain, path: Path, scope: AccessScope = AccessScope.UNSPECIFIED): AccessResponse
Subclass API: Policy check.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun newByteChannel(path: Path, options: MutableSet<out OpenOption>, vararg attrs: FileAttribute<*>): SeekableByteChannel
Link copied to clipboard
open override fun newDirectoryStream(dir: Path, filter: DirectoryStream.Filter<in Path>): DirectoryStream<Path>
Link copied to clipboard
open override fun readAttributes(path: Path, attributes: String, vararg options: LinkOption): MutableMap<String, Any>
Link copied to clipboard
Subclass API: Read a file.
Link copied to clipboard
Link copied to clipboard
open override fun setAttribute(path: Path, attribute: String, value: Any, vararg options: LinkOption)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Subclass API: Write a file.