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, bool compat)
 The constructor.
virtual ~session ()
 The destructor.
virtual sbuild::auth::status get_chroot_auth_status (sbuild::auth::status status, sbuild::chroot::ptr const &chroot) const
virtual sbuild::string_list get_login_directories () const
virtual void get_user_command (sbuild::chroot::ptr &session_chroot, std::string &file, sbuild::string_list &command) const


Detailed Description

Session handler for dchroot sessions.

This class provides the session handling for dchroot compatibility. It overrides the normal authentication checks to allow all users to access the service, and it specialises the session behaviour to be compatible with the chdir and command execution behaviour of dchroot.


Constructor & Destructor Documentation

session::session ( std::string const &  service,
config_ptr config,
operation  operation,
sbuild::string_list const &  chroots,
bool  compat 
)

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.
compat true to enable full dchroot compatibility, or false to enable schroot compatiblity (permissions checks).

session::~session (  )  [virtual]

The destructor.

Reimplemented from sbuild::session.


Member Function Documentation

sbuild::auth::status session::get_chroot_auth_status ( sbuild::auth::status  status,
sbuild::chroot::ptr const &  chroot 
) const [virtual]

sbuild::string_list session::get_login_directories (  )  const [virtual]

void session::get_user_command ( sbuild::chroot::ptr session_chroot,
std::string &  file,
sbuild::string_list command 
) const [virtual]


The documentation for this class was generated from the following files:

Generated on Mon May 5 09:27:44 2008 for schroot by  doxygen 1.5.5