#include <config.h>
#include "sbuild-chroot-plain.h"
#include "sbuild-chroot-lvm-snapshot.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 <uuid/uuid.h>
Include dependency graph for sbuild-session.cc:
Go to the source code of this file.
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] |
Definition at line 55 of file sbuild-session.cc.
std::string @51::getcwd | ( | ) | [static] |
Get the current working directory.
If it can't be found, fall back to root.
Definition at line 124 of file sbuild-session.cc.
Referenced by sbuild::session::run_child().
Here is the caller graph for this function:
bool @51::is_group_member | ( | std::string const & | group | ) | [static] |
Check group membership.
group | the group to check for. |
Definition at line 145 of file sbuild-session.cc.
References sbuild::log_exception_warning().
Referenced by sbuild::session::get_chroot_auth_status().
Here is the call graph for this function:
Here is the caller graph for this function:
void @51::sighup_handler | ( | int | ignore | ) | [static] |
Handle the SIGHUP signal.
ignore | the signal number. |
Definition at line 202 of file sbuild-session.cc.
Referenced by sbuild::session::set_sighup_handler().
Here is the caller graph for this function:
void @51::sigterm_handler | ( | int | ignore | ) | [static] |
Handle the SIGTERM signal.
ignore | the signal number. |
Definition at line 214 of file sbuild-session.cc.
Referenced by sbuild::session::set_sigterm_handler().
Here is the caller graph for this function:
emap init_errors[] [static] |
This is a list of the supported error codes.
It's used to construct the real error codes map.
Definition at line 61 of file sbuild-session.cc.
volatile bool sighup_called = false [static] |
Definition at line 193 of file sbuild-session.cc.
Referenced by sbuild::session::run_impl(), and sbuild::session::wait_for_child().
volatile bool sigterm_called = false [static] |
Definition at line 194 of file sbuild-session.cc.
Referenced by sbuild::session::run_impl(), and sbuild::session::wait_for_child().