|
sbuild
1.7.1
|
Common chroot data. More...
#include <session-setup.h>
Inheritance diagram for sbuild::chroot::facet::session_setup:Public Types | |
|
typedef std::shared_ptr < session_setup > | ptr |
| A shared_ptr to a chroot session_setup object. | |
|
typedef std::shared_ptr< const session_setup > | const_ptr |
| A shared_ptr to a const chroot session_setup object. | |
Public Member Functions | |
| virtual | ~session_setup () |
| The destructor. | |
| virtual void | chroot_session_setup (const chroot &parent, const std::string &session_id, const std::string &alias, const std::string &user, bool root)=0 |
| Set up a newly-cloned session chroot. More... | |
Protected Member Functions | |
| session_setup () | |
| The constructor. | |
Common chroot data.
This class contains all of the metadata associated with a single chroot, for all chroot types. This is the in-core representation of a chroot definition in the configuration file, and may be initialised directly from an open keyfile.
|
pure virtual |
Set up a newly-cloned session chroot.
| parent | the parent of the cloned chroot. |
| session_id | the identifier (session_id) for the new session. |
| alias | used to initially identify the chroot. |
| user | the user creating the session. |
| root | true if the user has root access, otherwise false. |
Implemented in sbuild::chroot::facet::fsunion, sbuild::chroot::facet::btrfs_snapshot, sbuild::chroot::facet::lvm_snapshot, sbuild::chroot::facet::loopback, and sbuild::chroot::facet::block_device.
Referenced by sbuild::chroot::facet::session_clonable::clone_session().
Here is the caller graph for this function:
1.8.4