sbuild-session.cc File Reference

#include <config.h>
#include "sbuild-chroot-plain.h"
#include "sbuild-chroot-lvm-snapshot.h"
#include "sbuild-ctty.h"
#include "sbuild-run-parts.h"
#include "sbuild-session.h"
#include "sbuild-util.h"
#include <cassert>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <memory>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <syslog.h>
#include <boost/format.hpp>
#include <time.h>

Include dependency graph for sbuild-session.cc:


Typedefs

typedef std::pair
< sbuild::session::error_code,
const char * > 
emap

Functions

std::string getcwd ()
 Get the current working directory.
bool is_group_member (std::string const &group)
 Check group membership.
void sighup_handler (int ignore)
 Handle the SIGHUP signal.
void sigterm_handler (int ignore)
 Handle the SIGTERM signal.

Variables

emap init_errors []
 This is a list of the supported error codes.
volatile bool sighup_called = false
volatile bool sigterm_called = false

Typedef Documentation

typedef std::pair<sbuild::session::error_code,const char *> emap [static]


Function Documentation

std::string @62::getcwd (  )  [static]

Get the current working directory.

If it can't be found, fall back to root.

Returns:
the current working directory.

Referenced by sbuild::session::run_child().

bool @62::is_group_member ( std::string const &  group  )  [static]

Check group membership.

Parameters:
group the group to check for.
Returns:
true if the user is a member of group, otherwise false.

References sbuild::log_exception_warning().

Referenced by sbuild::session::get_chroot_auth_status().

void @62::sighup_handler ( int  ignore  )  [static]

Handle the SIGHUP signal.

Parameters:
ignore the signal number.

Referenced by sbuild::session::set_sighup_handler().

void @62::sigterm_handler ( int  ignore  )  [static]

Handle the SIGTERM signal.

Parameters:
ignore the signal number.

Referenced by sbuild::session::set_sigterm_handler().


Variable Documentation

emap init_errors[] [static]

This is a list of the supported error codes.

It's used to construct the real error codes map.

volatile bool sighup_called = false [static]

volatile bool sigterm_called = false [static]


Generated on Sat Jul 5 11:59:41 2008 for sbuild by  doxygen 1.5.6