#include <sbuild-chroot-source.h>
Inheritance diagram for sbuild::chroot_source:
Public Member Functions | |
virtual | ~chroot_source () |
The destructor. | |
virtual chroot::ptr | clone_source () const =0 |
virtual string_list const & | get_source_groups () const |
Get the groups allowed to access the source chroot. | |
virtual void | set_source_groups (string_list const &groups) |
Set the groups allowed to access the source chroot. | |
virtual string_list const & | get_source_root_groups () const |
Get the groups allowed to access the source chroot as root. | |
virtual void | set_source_root_groups (string_list const &groups) |
Set the groups allowed to access the source chroot as root. | |
void | setup_env (environment &env) |
Set environment. | |
Protected Member Functions | |
chroot_source () | |
The constructor. | |
void | clone_source_setup (chroot::ptr &clone) const |
Set the defaults in the cloned source chroot. | |
void | print_details (std::ostream &stream) const |
Print detailed information about the chroot to a stream. | |
void | get_keyfile (keyfile &keyfile) const |
Copy the chroot properties into a keyfile. | |
void | set_keyfile (keyfile const &keyfile) |
Set the chroot properties from a keyfile. | |
Private Attributes | |
string_list | source_groups |
Groups allowed to access the source chroot. | |
string_list | source_root_groups |
Groups allowed to access the source chroot as root. | |
Friends | |
class | chroot |
This interface may be implemented by any chroot wishing to provide such functionality.
While this is effectively an interface, in practice this derives from sbuild::chroot, to allow setting and getting of data from a keyfile, including storing the keyfile options.
Chroot types implementing chroot_source should, at a minimum, implement clone_source(). This should create and return a source chroot, and must call clone_source_setup() to set up the source chroot.
|
The constructor.
|
|
The destructor.
|
|
Implemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Set the defaults in the cloned source chroot.
|
|
Copy the chroot properties into a keyfile. The keyfile group with the name of the chroot will be set; if it already exists, it will be removed before setting it.
Reimplemented from sbuild::chroot. Reimplemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Get the groups allowed to access the source chroot.
|
|
Get the groups allowed to access the source chroot as root. Mmebers of these groups can switch to root without authenticating themselves.
|
|
Print detailed information about the chroot to a stream. The information is printed in plain text with one line per property.
Reimplemented from sbuild::chroot. Reimplemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Set the chroot properties from a keyfile. The chroot name must have previously been set, so that the correct keyfile group may be determined.
Reimplemented from sbuild::chroot. Reimplemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Set the groups allowed to access the source chroot.
|
|
Set the groups allowed to access the source chroot as root. Mmebers of these groups can switch to root without authenticating themselves.
|
|
Set environment. Set the environment that the setup scripts will see during execution.
Reimplemented from sbuild::chroot. Reimplemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Reimplemented in sbuild::chroot_file, and sbuild::chroot_lvm_snapshot. |
|
Groups allowed to access the source chroot.
|
|
Groups allowed to access the source chroot as root.
|