#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>
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 std::pair<sbuild::session::error_code,const char *> emap [static] |
std::string @62::getcwd | ( | ) | [static] |
Get the current working directory.
If it can't be found, fall back to root.
Referenced by sbuild::session::run_child().
bool @62::is_group_member | ( | std::string const & | group | ) | [static] |
Check group membership.
group | the group to check for. |
References sbuild::log_exception_warning().
Referenced by sbuild::session::get_chroot_auth_status().
void @62::sighup_handler | ( | int | ignore | ) | [static] |
Handle the SIGHUP signal.
ignore | the signal number. |
Referenced by sbuild::session::set_sighup_handler().
void @62::sigterm_handler | ( | int | ignore | ) | [static] |
Handle the SIGTERM signal.
ignore | the signal number. |
Referenced by sbuild::session::set_sigterm_handler().
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] |
Referenced by sbuild::session::run_impl(), and sbuild::session::wait_for_child().
volatile bool sigterm_called = false [static] |
Referenced by sbuild::session::run_impl(), and sbuild::session::wait_for_child().