GVirSandboxConfig

GVirSandboxConfig — Basic sandbox configuration details

Functions

GVirSandboxConfig * gvir_sandbox_config_load_from_path ()
GVirSandboxConfig * gvir_sandbox_config_load_from_data ()
gboolean gvir_sandbox_config_save_to_path ()
gchar * gvir_sandbox_config_save_to_data ()
const gchar * gvir_sandbox_config_get_name ()
void gvir_sandbox_config_set_uuid ()
const gchar * gvir_sandbox_config_get_uuid ()
void gvir_sandbox_config_set_root ()
const gchar * gvir_sandbox_config_get_root ()
void gvir_sandbox_config_set_arch ()
const gchar * gvir_sandbox_config_get_arch ()
void gvir_sandbox_config_set_kernrelease ()
const gchar * gvir_sandbox_config_get_kernrelease ()
void gvir_sandbox_config_set_kernpath ()
const gchar * gvir_sandbox_config_get_kernpath ()
void gvir_sandbox_config_set_kmodpath ()
const gchar * gvir_sandbox_config_get_kmodpath ()
void gvir_sandbox_config_set_shell ()
gboolean gvir_sandbox_config_get_shell ()
void gvir_sandbox_config_set_userid ()
guint gvir_sandbox_config_get_userid ()
void gvir_sandbox_config_set_groupid ()
guint gvir_sandbox_config_get_groupid ()
void gvir_sandbox_config_set_username ()
const gchar * gvir_sandbox_config_get_username ()
void gvir_sandbox_config_set_homedir ()
const gchar * gvir_sandbox_config_get_homedir ()
void gvir_sandbox_config_add_network ()
GList * gvir_sandbox_config_get_networks ()
gboolean gvir_sandbox_config_add_network_opts ()
gboolean gvir_sandbox_config_add_network_strv ()
gboolean gvir_sandbox_config_has_networks ()
void gvir_sandbox_config_add_env ()
GHashTable * gvir_sandbox_config_get_envs ()
gboolean gvir_sandbox_config_add_env_strv ()
gboolean gvir_sandbox_config_add_env_opts ()
gboolean gvir_sandbox_config_has_envs ()
void gvir_sandbox_config_add_disk ()
GList * gvir_sandbox_config_get_disks ()
gboolean gvir_sandbox_config_add_disk_strv ()
gboolean gvir_sandbox_config_add_disk_opts ()
gboolean gvir_sandbox_config_has_disks ()
void gvir_sandbox_config_add_mount ()
GList * gvir_sandbox_config_get_mounts ()
GList * gvir_sandbox_config_get_mounts_with_type ()
GVirSandboxConfigMount * gvir_sandbox_config_find_mount ()
gboolean gvir_sandbox_config_add_mount_opts ()
gboolean gvir_sandbox_config_add_mount_strv ()
gboolean gvir_sandbox_config_has_mounts ()
gboolean gvir_sandbox_config_has_mounts_with_type ()
gboolean gvir_sandbox_config_has_root_mount ()
gboolean gvir_sandbox_config_add_host_include_strv ()
gboolean gvir_sandbox_config_add_host_include_file ()
void gvir_sandbox_config_set_security_label ()
const gchar * gvir_sandbox_config_get_security_label ()
void gvir_sandbox_config_set_security_dynamic ()
gboolean gvir_sandbox_config_get_security_dynamic ()
gboolean gvir_sandbox_config_set_security_opts ()
void gvir_sandbox_config_set_debug ()
gboolean gvir_sandbox_config_get_debug ()
void gvir_sandbox_config_set_verbose ()
gboolean gvir_sandbox_config_get_verbose ()
gchar ** gvir_sandbox_config_get_command ()

Properties

gchar * arch Read / Write
guint gid Read / Write
gchar * homedir Read / Write
gchar * kernpath Read / Write
gchar * kernrelease Read / Write
gchar * kmodpath Read / Write
gchar * name Read / Write / Construct Only
gchar * root Read / Write
gboolean security-dynamic Read / Write
gchar * security-label Read / Write
gchar * shell Read / Write
guint uid Read / Write
gchar * username Read / Write
gchar * uuid Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConfig
        ├── GVirSandboxConfigInteractive
        ╰── GVirSandboxConfigService

Includes

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

Description

Provides a base object to store configurations for the application sandbox

The GVirSandboxConfig object stores the basic information required to create application sandboxes with a simple text based console.

Functions

gvir_sandbox_config_load_from_path ()

GVirSandboxConfig *
gvir_sandbox_config_load_from_path (const gchar *path,
                                    GError **error);

Parameters

path

the local path to load

 

error

the loader error

 

Returns

the new config or NULL.

[transfer full]


gvir_sandbox_config_load_from_data ()

GVirSandboxConfig *
gvir_sandbox_config_load_from_data (const gchar *data,
                                    GError **error);

Parameters

data

the .ini data string to load

 

error

the loader error

 

Returns

the new config or NULL.

[transfer full]


gvir_sandbox_config_save_to_path ()

gboolean
gvir_sandbox_config_save_to_path (GVirSandboxConfig *config,
                                  const gchar *path,
                                  GError **error);

gvir_sandbox_config_save_to_data ()

gchar *
gvir_sandbox_config_save_to_data (GVirSandboxConfig *config,
                                  GError **error);

gvir_sandbox_config_get_name ()

const gchar *
gvir_sandbox_config_get_name (GVirSandboxConfig *config);

Retrieves the sandbox name

Parameters

config

the sandbox config.

[transfer none]

Returns

the current name.

[transfer none]


gvir_sandbox_config_set_uuid ()

void
gvir_sandbox_config_set_uuid (GVirSandboxConfig *config,
                              const gchar *uuid);

Set the UUID for the container, to overide the automatically generated value.

Parameters

config

the sandbox config.

[transfer none]

uuid

the uuid in string format.

[transfer none]

gvir_sandbox_config_get_uuid ()

const gchar *
gvir_sandbox_config_get_uuid (GVirSandboxConfig *config);

Retrieves the sandbox UUID

Parameters

config

the sandbox config.

[transfer none]

Returns

the current uuid.

[transfer none]


gvir_sandbox_config_set_root ()

void
gvir_sandbox_config_set_root (GVirSandboxConfig *config,
                              const gchar *hostdir);

Set the host directory to use as the root for the sandbox. The defualt root is "/".

Parameters

config

the sandbox config.

[transfer none]

hostdir

the host directory.

[transfer none]

gvir_sandbox_config_get_root ()

const gchar *
gvir_sandbox_config_get_root (GVirSandboxConfig *config);

Retrieves the sandbox root directory

Parameters

config

the sandbox config.

[transfer none]

Returns

the current root.

[transfer none]


gvir_sandbox_config_set_arch ()

void
gvir_sandbox_config_set_arch (GVirSandboxConfig *config,
                              const gchar *arch);

Set the architecture to use in the sandbox. If none is provided, it will default to matching the host architecture.

Parameters

config

the sandbox config.

[transfer none]

arch

the host directory.

[transfer none]

gvir_sandbox_config_get_arch ()

const gchar *
gvir_sandbox_config_get_arch (GVirSandboxConfig *config);

Retrieves the sandbox binary architecture

Parameters

config

the sandbox config.

[transfer none]

Returns

the current architecture.

[transfer none]


gvir_sandbox_config_set_kernrelease ()

void
gvir_sandbox_config_set_kernrelease (GVirSandboxConfig *config,
                                     const gchar *kernrelease);

Set the kernel release version to use in the sandbox. If none is provided, it will default to matching the current running kernel.

Parameters

config

the sandbox config.

[transfer none]

kernrelease

the host directory.

[transfer none]

gvir_sandbox_config_get_kernrelease ()

const gchar *
gvir_sandbox_config_get_kernrelease (GVirSandboxConfig *config);

Retrieves the sandbox kernel release version

Parameters

config

the sandbox config.

[transfer none]

Returns

the current kernel release version.

[transfer none]


gvir_sandbox_config_set_kernpath ()

void
gvir_sandbox_config_set_kernpath (GVirSandboxConfig *config,
                                  const gchar *kernpath);

Set the kernel image path to use in the sandbox. If none is provided, it will default to matching /boot/vmlinuz-[kernel release].

Parameters

config

the sandbox config.

[transfer none]

kernpath

the host directory.

[transfer none]

gvir_sandbox_config_get_kernpath ()

const gchar *
gvir_sandbox_config_get_kernpath (GVirSandboxConfig *config);

Retrieves the sandbox kernel image path

Parameters

config

the sandbox config.

[transfer none]

Returns

the current kernel image path.

[transfer none]


gvir_sandbox_config_set_kmodpath ()

void
gvir_sandbox_config_set_kmodpath (GVirSandboxConfig *config,
                                  const gchar *kmodpath);

Sets the generic path to the kernel modules directory. It will default to "/lib/modules", modules being searched in /lib/modules/[kernel release]. If "/path" is given as argument modules will be searched in /path/[kernel release]

Parameters

config

the sandbox config.

[transfer none]

kmodpath

the kernel modules path.

[transfer none]

gvir_sandbox_config_get_kmodpath ()

const gchar *
gvir_sandbox_config_get_kmodpath (GVirSandboxConfig *config);

Retrieves the sandbox kernel modules path

Parameters

config

the sandbox config.

[transfer none]

Returns

the current kernel modules path.

[transfer none]


gvir_sandbox_config_set_shell ()

void
gvir_sandbox_config_set_shell (GVirSandboxConfig *config,
                               gboolean shell);

Set whether the container console should have a interactive shell.

Parameters

config

the sandbox config.

[transfer none]

shell

true if the container should have a shell

 

gvir_sandbox_config_get_shell ()

gboolean
gvir_sandbox_config_get_shell (GVirSandboxConfig *config);

Retrieves the sandbox shell flag

Parameters

config

the sandbox config.

[transfer none]

Returns

the shell flag


gvir_sandbox_config_set_userid ()

void
gvir_sandbox_config_set_userid (GVirSandboxConfig *config,
                                guint uid);

Set the user ID to invoke the sandbox application under. Defaults to the user ID of the current program.

Parameters

config

the sandbox config.

[transfer none]

uid

the sandbox user ID

 

gvir_sandbox_config_get_userid ()

guint
gvir_sandbox_config_get_userid (GVirSandboxConfig *config);

Get the user ID to invoke the sandbox application under.

Parameters

config

the sandbox config.

[transfer none]

Returns

the user ID


gvir_sandbox_config_set_groupid ()

void
gvir_sandbox_config_set_groupid (GVirSandboxConfig *config,
                                 guint gid);

Set the group ID to invoke the sandbox application under. Defaults to the group ID of the current program.

Parameters

config

the sandbox config.

[transfer none]

gid

the sandbox group ID

 

gvir_sandbox_config_get_groupid ()

guint
gvir_sandbox_config_get_groupid (GVirSandboxConfig *config);

Get the group ID to invoke the sandbox application under.

Parameters

config

the sandbox config.

[transfer none]

Returns

the group ID


gvir_sandbox_config_set_username ()

void
gvir_sandbox_config_set_username (GVirSandboxConfig *config,
                                  const gchar *username);

Set the user name associated with the sandbox user ID. Defaults to the user name of the current program.

Parameters

config

the sandbox config.

[transfer none]

username

the sandbox user name.

[transfer none]

gvir_sandbox_config_get_username ()

const gchar *
gvir_sandbox_config_get_username (GVirSandboxConfig *config);

Get the user name to invoke the sandbox application under.

Parameters

config

the sandbox config.

[transfer none]

Returns

the user name.

[transfer none]


gvir_sandbox_config_set_homedir ()

void
gvir_sandbox_config_set_homedir (GVirSandboxConfig *config,
                                 const gchar *homedir);

Set the home directory associated with the sandbox user ID. Defaults to the home directory of the current program.

Parameters

config

the sandbox config.

[transfer none]

homedir

the sandbox home directory.

[transfer none]

gvir_sandbox_config_get_homedir ()

const gchar *
gvir_sandbox_config_get_homedir (GVirSandboxConfig *config);

Get the home directory associated with the sandbox user ID

Parameters

config

the sandbox config.

[transfer none]

Returns

the home directory.

[transfer none]


gvir_sandbox_config_add_network ()

void
gvir_sandbox_config_add_network (GVirSandboxConfig *config,
                                 GVirSandboxConfigNetwork *network);

Adds a new network connection to the sandbox

Parameters

config

the sandbox config.

[transfer none]

network

the network configuration.

[transfer none]

gvir_sandbox_config_get_networks ()

GList *
gvir_sandbox_config_get_networks (GVirSandboxConfig *config);

Retrieves the list of custom networks in the sandbox

Parameters

config

the sandbox config.

[transfer none]

Returns

the list of networks.

[transfer full][element-type GVirSandboxConfigNetwork]


gvir_sandbox_config_add_network_opts ()

gboolean
gvir_sandbox_config_add_network_opts (GVirSandboxConfig *config,
                                      const gchar *network,
                                      GError **error);

Parses network whose elements are in the format KEY=VALUE, creating GVirSandboxConfigNetwork instances for each element.

dhcp,source=default source=private,address=192.168.122.1/24192.168.122.255, address=192.168.122.1/24192.168.122.255,address=2001:212::204:2/64 route=192.168.122.255/24192.168.1.1 filter=clean-traffic filter.ip=192.168.122.1

Parameters

config

the sandbox config.

[transfer none]

network

the network config.

[transfer none]

gvir_sandbox_config_add_network_strv ()

gboolean
gvir_sandbox_config_add_network_strv (GVirSandboxConfig *config,
                                      gchar **networks,
                                      GError **error);

Parses networks whose elements are in the format KEY=VALUE, creating GVirSandboxConfigNetwork instances for each element.

Parameters

config

the sandbox config.

[transfer none]

networks

the list of networks.

[transfer none][array zero-terminated=1]

gvir_sandbox_config_has_networks ()

gboolean
gvir_sandbox_config_has_networks (GVirSandboxConfig *config);

gvir_sandbox_config_add_env ()

void
gvir_sandbox_config_add_env (GVirSandboxConfig *config,
                             gchar *key,
                             gchar *value);

Adds a new environment variable to the sandbox

Parameters

config

the sandbox config.

[transfer none]

key

the key for environment variable.

[transfer none]

value

the value for environment variable.

[transfer none]

gvir_sandbox_config_get_envs ()

GHashTable *
gvir_sandbox_config_get_envs (GVirSandboxConfig *config);

Retrieves the hashtable of custom environment variables in the sandbox

Parameters

config

the sandbox config.

[transfer none]

Returns

the hashtable of environment variables.

[transfer full][element-type gchar gchar]


gvir_sandbox_config_add_env_strv ()

gboolean
gvir_sandbox_config_add_env_strv (GVirSandboxConfig *config,
                                  gchar **envs,
                                  GError **error);

Parses envs whose elements are in the format KEY=VALUE

--env KEY=VALUE

Parameters

config

the sandbox config.

[transfer none]

envs

the list of environment variables.

[transfer none][array zero-terminated=1]

gvir_sandbox_config_add_env_opts ()

gboolean
gvir_sandbox_config_add_env_opts (GVirSandboxConfig *config,
                                  const char *env,
                                  GError **error);

Parses env in the format KEY=VALUE creating GVirSandboxConfigEnv instances for each element. For example

--env KEY=VALUE

Parameters

config

the sandbox config.

[transfer none]

env

the env config.

[transfer none]

gvir_sandbox_config_has_envs ()

gboolean
gvir_sandbox_config_has_envs (GVirSandboxConfig *config);

gvir_sandbox_config_add_disk ()

void
gvir_sandbox_config_add_disk (GVirSandboxConfig *config,
                              GVirSandboxConfigDisk *dsk);

Adds a new custom disk to the sandbox

Parameters

config

the sandbox config.

[transfer none]

dsk

the disk configuration.

[transfer none]

gvir_sandbox_config_get_disks ()

GList *
gvir_sandbox_config_get_disks (GVirSandboxConfig *config);

Retrieves the list of custom disks in the sandbox

Parameters

config

the sandbox config.

[transfer none]

Returns

the list of disks.

[transfer full][element-type GVirSandboxConfigMount]


gvir_sandbox_config_add_disk_strv ()

gboolean
gvir_sandbox_config_add_disk_strv (GVirSandboxConfig *config,
                                   gchar **disks,
                                   GError **error);

Parses disks whose elements are in the format TYPE:TAG=SOURCE,format=FORMAT creating GVirSandboxConfigMount instances for each element. For example

  • file:cache=/var/lib/sandbox/demo/tmp.qcow2,format=qcow2

Parameters

config

the sandbox config.

[transfer none]

disks

the list of disks.

[transfer none][array zero-terminated=1]

gvir_sandbox_config_add_disk_opts ()

gboolean
gvir_sandbox_config_add_disk_opts (GVirSandboxConfig *config,
                                   const char *disk,
                                   GError **error);

Parses disk in the format TYPE:TAG=SOURCE,format=FORMAT creating GVirSandboxConfigDisk instances for each element. For example

  • file:cache=/var/lib/sandbox/demo/tmp.qcow2,format=qcow2

Parameters

config

the sandbox config.

[transfer none]

disk

the disk config.

[transfer none]

gvir_sandbox_config_has_disks ()

gboolean
gvir_sandbox_config_has_disks (GVirSandboxConfig *config);

gvir_sandbox_config_add_mount ()

void
gvir_sandbox_config_add_mount (GVirSandboxConfig *config,
                               GVirSandboxConfigMount *mnt);

Adds a new custom mount to the sandbox, to override part of the host filesystem

Parameters

config

the sandbox config.

[transfer none]

mnt

the mount configuration.

[transfer none]

gvir_sandbox_config_get_mounts ()

GList *
gvir_sandbox_config_get_mounts (GVirSandboxConfig *config);

Retrieves the list of custom mounts in the sandbox

Parameters

config

the sandbox config.

[transfer none]

Returns

the list of mounts.

[transfer full][element-type GVirSandboxConfigMount]


gvir_sandbox_config_get_mounts_with_type ()

GList *
gvir_sandbox_config_get_mounts_with_type
                               (GVirSandboxConfig *config,
                                GType type);

Retrieves the list of custom mounts in the sandbox

Parameters

config

the sandbox config.

[transfer none]

Returns

the list of mounts.

[transfer full][element-type GVirSandboxConfigMount]


gvir_sandbox_config_find_mount ()

GVirSandboxConfigMount *
gvir_sandbox_config_find_mount (GVirSandboxConfig *config,
                                const gchar *target);

Finds the GVirSandboxConfigMount object corresponding to a guest path of target .

Parameters

config

the sandbox config.

[transfer none]

target

the guest target path

 

Returns

a mount object or NULL.

[transfer full][allow-none]


gvir_sandbox_config_add_mount_opts ()

gboolean
gvir_sandbox_config_add_mount_opts (GVirSandboxConfig *config,
                                    const char *mount,
                                    GError **error);

Parses mount whose elements are in the format TYPE:TARGET=SOURCE creating GVirSandboxConfigMount instances for each element. For example

  • host-bind:/tmp=/var/lib/sandbox/demo/tmp

  • host-image:/=/var/lib/sandbox/demo.img

  • host-image:/=/var/lib/sandbox/demo.qcow2,format=qcow2

  • guest-bind:/home=/tmp/home

  • ram:/tmp=500M

Parameters

config

the sandbox config.

[transfer none]

mount

the mount config.

[transfer none]

gvir_sandbox_config_add_mount_strv ()

gboolean
gvir_sandbox_config_add_mount_strv (GVirSandboxConfig *config,
                                    gchar **mounts,
                                    GError **error);

Parses mounts whose elements are in the format TYPE:TARGET=SOURCE creating GVirSandboxConfigMount instances for each element. For example

  • host-bind:/tmp=/var/lib/sandbox/demo/tmp

  • host-image:/=/var/lib/sandbox/demo.img

  • guest-bind:/home=/tmp/home

Parameters

config

the sandbox config.

[transfer none]

mounts

the list of mounts.

[transfer none][array zero-terminated=1]

gvir_sandbox_config_has_mounts ()

gboolean
gvir_sandbox_config_has_mounts (GVirSandboxConfig *config);

gvir_sandbox_config_has_mounts_with_type ()

gboolean
gvir_sandbox_config_has_mounts_with_type
                               (GVirSandboxConfig *config,
                                GType type);

gvir_sandbox_config_has_root_mount ()

gboolean
gvir_sandbox_config_has_root_mount (GVirSandboxConfig *config);

gvir_sandbox_config_add_host_include_strv ()

gboolean
gvir_sandbox_config_add_host_include_strv
                               (GVirSandboxConfig *config,
                                gchar **includes,
                                GError **error);

Parses includes whose elements are in the format GUEST-TARGET=ROOT-PATH. If ROOT_PATH is omitted, then it is assumed to be the same as GUEST-TARGET

Parameters

config

the sandbox config.

[transfer none]

includes

the list of includes.

[transfer none][array zero-terminated=1]

gvir_sandbox_config_add_host_include_file ()

gboolean
gvir_sandbox_config_add_host_include_file
                               (GVirSandboxConfig *config,
                                gchar *includefile,
                                GError **error);

gvir_sandbox_config_set_security_label ()

void
gvir_sandbox_config_set_security_label
                               (GVirSandboxConfig *config,
                                const gchar *label);

Set the sandbox security label. By default a dynamic security label is chosen. A static security label must be specified if any custom mounts are added

Parameters

config

the sandbox config.

[transfer none]

label

the host directory.

[transfer none]

gvir_sandbox_config_get_security_label ()

const gchar *
gvir_sandbox_config_get_security_label
                               (GVirSandboxConfig *config);

Retrieve the sandbox security label

Parameters

config

the sandbox config.

[transfer none]

Returns

the security label.

[transfer none]


gvir_sandbox_config_set_security_dynamic ()

void
gvir_sandbox_config_set_security_dynamic
                               (GVirSandboxConfig *config,
                                gboolean dynamic);

Set the SELinux security dynamic for the sandbox. The default dynamic is "svirt_sandbox_t"

Parameters

config

the sandbox config.

[transfer none]

dynamic

the security mode

 

gvir_sandbox_config_get_security_dynamic ()

gboolean
gvir_sandbox_config_get_security_dynamic
                               (GVirSandboxConfig *config);

Retrieve the sandbox security mode

Parameters

config

the sandbox config.

[transfer none]

Returns

the security mode


gvir_sandbox_config_set_security_opts ()

gboolean
gvir_sandbox_config_set_security_opts (GVirSandboxConfig *config,
                                       const gchar *optstr,
                                       GError **error);

gvir_sandbox_config_set_debug ()

void
gvir_sandbox_config_set_debug (GVirSandboxConfig *config,
                               gboolean debug);

Set whether the container init should print debugging messages.

Parameters

config

the sandbox config.

[transfer none]

debug

true if the container init should print debugging messages

 

gvir_sandbox_config_get_debug ()

gboolean
gvir_sandbox_config_get_debug (GVirSandboxConfig *config);

Retrieves the sandbox debug flag

Parameters

config

the sandbox config.

[transfer none]

Returns

the debug flag


gvir_sandbox_config_set_verbose ()

void
gvir_sandbox_config_set_verbose (GVirSandboxConfig *config,
                                 gboolean verbose);

Set whether the container init should be verbose.

Parameters

config

the sandbox config.

[transfer none]

verbose

true if the container init should be verbose

 

gvir_sandbox_config_get_verbose ()

gboolean
gvir_sandbox_config_get_verbose (GVirSandboxConfig *config);

Retrieves the sandbox verbose flag

Parameters

config

the sandbox config.

[transfer none]

Returns

the verbose flag


gvir_sandbox_config_get_command ()

gchar **
gvir_sandbox_config_get_command (GVirSandboxConfig *config);

Retrieve the sandbox command and arguments

Parameters

config

the sandbox config.

[transfer none]

Returns

the command path and arguments.

[transfer full][array zero-terminated=1]

Types and Values

struct GVirSandboxConfig

struct GVirSandboxConfig;

struct GVirSandboxConfigClass

struct GVirSandboxConfigClass {
    GObjectClass parent_class;

    gboolean (*load_config)(GVirSandboxConfig *config,
                            GKeyFile *file,
                            GError **error);
    void (*save_config)(GVirSandboxConfig *config,
                        GKeyFile *file);

    gchar **(*get_command)(GVirSandboxConfig *config);

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConfigPrivate

typedef struct _GVirSandboxConfigPrivate GVirSandboxConfigPrivate;

Property Details

The “arch” property

  “arch”                     gchar *

The sandbox architecture.

Flags: Read / Write

Default value: NULL


The “gid” property

  “gid”                      guint

The group ID.

Flags: Read / Write

Default value: 501


The “homedir” property

  “homedir”                  gchar *

The home directory.

Flags: Read / Write

Default value: "/home/berrange"


The “kernpath” property

  “kernpath”                 gchar *

The kernel image path.

Flags: Read / Write

Default value: NULL


The “kernrelease” property

  “kernrelease”              gchar *

The kernel release version.

Flags: Read / Write

Default value: NULL


The “kmodpath” property

  “kmodpath”                 gchar *

Kernel modules path.

Flags: Read / Write

Default value: NULL


The “name” property

  “name”                     gchar *

The sandbox name.

Flags: Read / Write / Construct Only

Default value: NULL


The “root” property

  “root”                     gchar *

The sandbox root.

Flags: Read / Write

Default value: NULL


The “security-dynamic” property

  “security-dynamic”         gboolean

The security mode.

Flags: Read / Write

Default value: TRUE


The “security-label” property

  “security-label”           gchar *

The security label.

Flags: Read / Write

Default value: NULL


The “shell” property

  “shell”                    gchar *

SHELL.

Flags: Read / Write

Default value: NULL


The “uid” property

  “uid”                      guint

The user ID.

Flags: Read / Write

Default value: 501


The “username” property

  “username”                 gchar *

The username.

Flags: Read / Write

Default value: "berrange"


The “uuid” property

  “uuid”                     gchar *

The sandbox UUID.

Flags: Read / Write / Construct Only

Default value: NULL