add_path_to_sandbox


Description:

[ Version ( since = "2.26" ) ]
public void add_path_to_sandbox (string path, bool read_only)

Adds a path to be mounted in the sandbox.

path must exist before any web process has been created otherwise it will be silently ignored. It is a fatal error to add paths after a web process has been spawned.

Paths in directories such as `/sys`, `/proc`, and `/dev` or all of `/` are not valid.

See also set_sandbox_enabled

Parameters:

this

a WebContext

path

an absolute path to mount in the sandbox

read_only

if true the path will be read-only




2022 vala-language.org