Logo Search packages:      
Sourcecode: schroot version File versions  Download package

dchroot::session Class Reference

#include <dchroot-session.h>

Inheritance diagram for dchroot::session:

sbuild::session sbuild::auth

List of all members.


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.

Definition at line 44 of file dchroot-session.h.


Public Types

typedef std::tr1::shared_ptr
< chroot_config
config_ptr
 A shared_ptr to a chroot_config object.
typedef std::tr1::shared_ptr
< auth_conv > 
conv_ptr
 A shared_ptr to an auth_conv object.
typedef runtime_error_custom
< session
error
 Exception type.
enum  operation {
  OPERATION_AUTOMATIC, OPERATION_BEGIN, OPERATION_RECOVER, OPERATION_END,
  OPERATION_RUN
}
 Session operations. More...
typedef std::tr1::shared_ptr
< session
ptr
 A shared_ptr to a session object.
enum  status { STATUS_NONE, STATUS_USER, STATUS_FAIL }
 Authentication status. More...
enum  verbosity { VERBOSITY_QUIET, VERBOSITY_NORMAL, VERBOSITY_VERBOSE }
 Message verbosity. More...

Public Member Functions

void account ()
void authenticate ()
status change_auth (status oldauth, status newauth) const
void close_session ()
void cred_delete ()
void cred_establish ()
virtual sbuild::auth::status get_auth_status () const
int get_child_status () const
string_list const & get_chroots () const
string_list const & get_command () const
config_ptrget_config ()
conv_ptrget_conv ()
environment const & get_environment () const
bool get_force () const
gid_t get_gid () const
std::string const & get_home () const
operation get_operation () const
environment get_pam_environment () const
uid_t get_ruid () const
std::string const & get_ruser () const
std::string const & get_service () const
std::string const & get_session_id () const
std::string const & get_shell () const
uid_t get_uid () const
std::string const & get_user () const
verbosity get_verbosity () const
void open_session ()
void run ()
virtual void run_impl ()
 session (std::string const &service, config_ptr &config, operation operation, sbuild::string_list const &chroots)
void set_chroots (string_list const &chroots)
void set_command (string_list const &command)
void set_config (config_ptr &config)
void set_conv (conv_ptr &conv)
void set_environment (environment const &environment)
void set_environment (char **environment)
void set_force (bool force)
void set_operation (operation operation)
void set_session_id (std::string const &session_id)
void set_user (std::string const &user)
void set_verbosity (verbosity verbosity)
void setupenv ()
void start ()
void stop ()
virtual ~session ()
 The destructor.

Protected Attributes

pam_handle_t * pam
 The PAM handle.

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

Generated by  Doxygen 1.6.0   Back to index