dchroot::session Class Reference

Session handler for dchroot sessions. More...

#include <dchroot-session.h>

Inheritance diagram for dchroot::session:

Inheritance graph
[legend]
Collaboration diagram for dchroot::session:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 session (std::string const &service, config_ptr &config, operation operation, sbuild::string_list const &chroots)
 The constructor.
virtual ~session ()
 The destructor.
virtual sbuild::auth::status get_auth_status () const
 Check if authentication is required, taking groups and root-groups membership or all chroots specified into account.
virtual void run_impl ()
 Run a session.

Detailed Description

Session handler for dchroot sessions.

This class provides the session handling for dchroot compatibility. It derives from session, overriding the authentication checks to allow all users to access the service, and does not permit user switching.


Constructor & Destructor Documentation

session::session std::string const &  service,
config_ptr config,
operation  operation,
sbuild::string_list const &  chroots
 

The constructor.

Parameters:
service the PAM service name.
config a shared_ptr to the chroot configuration.
operation the session operation to perform.
chroots the chroots to act upon.

session::~session  )  [virtual]
 

The destructor.

Reimplemented from sbuild::session.


Member Function Documentation

sbuild::auth::status session::get_auth_status  )  const [virtual]
 

Check if authentication is required, taking groups and root-groups membership or all chroots specified into account.

Reimplemented from sbuild::session.

void session::run_impl  )  [virtual]
 

Run a session.

If a command has been specified, this will be run in each of the specified chroots. If no command has been specified, a login shell will run in the specified chroot.

An error will be thrown on failure.

Reimplemented from sbuild::session.


The documentation for this class was generated from the following files:
Generated on Sun Mar 19 12:08:49 2006 for schroot by  doxygen 1.4.6