GVirSandboxConfigMount

GVirSandboxConfigMount — Filesystem attachment configuration details

Functions

Properties

gchar * target Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConfigMount
        ├── GVirSandboxConfigMountFile
        ╰── GVirSandboxConfigMountRam

Includes

#include <libvirt-sandbox/libvirt-sandbox.h>

Description

Provides an object to store information about a filesystem attachment in the sandbox

The GVirSandboxConfigMount object stores information required to attach a host filesystem to the application sandbox. The sandbox starts off with a complete view of the host filesystem. This object allows a specific area of the host filesystem to be hidden and replaced with alternate content.

Functions

gvir_sandbox_config_mount_get_target ()

const gchar *
gvir_sandbox_config_mount_get_target (GVirSandboxConfigMount *config);

Retrieves the target directory for the custom mount

Parameters

config

the sandbox mount config.

[transfer none]

Returns

the target directory path.

[transfer none]


gvir_sandbox_config_mount_add_include ()

void
gvir_sandbox_config_mount_add_include (GVirSandboxConfigMount *config,
                                       const gchar *srcpath,
                                       const gchar *dstpath);

Request that the file srcpath from the host OS is to be copied to dstpath , relative to the target path in the sandbox.

Parameters

config

the sandbox mount config.

[transfer none]

srcpath

a file on the host.

[transfer none]

dstpath

a path within the mount.

[transfer none]

gvir_sandbox_config_mount_get_includes ()

GHashTable *
gvir_sandbox_config_mount_get_includes
                               (GVirSandboxConfigMount *config);

Retrieves the list of all include files

Parameters

config

the sandbox mount config.

[transfer none]

Returns

the include files.

[transfer none][element-type filename filename]

Types and Values

GVIR_SANDBOX_TYPE_CONFIG_MOUNT_HANDLE

#define GVIR_SANDBOX_TYPE_CONFIG_MOUNT_HANDLE      (gvir_sandbox_config_mount_handle_get_type ())

struct GVirSandboxConfigMount

struct GVirSandboxConfigMount;

struct GVirSandboxConfigMountClass

struct GVirSandboxConfigMountClass {
    GObjectClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConfigMountPrivate

typedef struct _GVirSandboxConfigMountPrivate GVirSandboxConfigMountPrivate;

Property Details

The “target” property

  “target”                   gchar *

The sandbox target directory.

Flags: Read / Write / Construct Only

Default value: NULL