apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

acquire.cc File Reference
#include <config.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire-worker.h>
#include <apt-pkg/acquire.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/strutl.h>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <memory>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <apti18n.h>
Include dependency graph for acquire.cc:

Go to the source code of this file.

Classes

class  Private
 

Functions

static bool SetupAPTPartialDirectory (std::string const &grand, std::string const &parent, std::string const &postfix, mode_t const mode)
 
static bool CheckForBadItemAndFailIt (pkgAcquire::Item *const Item, pkgAcquire::MethodConfig const *const Config, pkgAcquireStatus *const Log)
 
static bool IsAccessibleBySandboxUser (std::string const &filename, bool const ReadWrite)
 
static void CheckDropPrivsMustBeDisabled (pkgAcquire const &Fetcher)
 
static struct timeval GetTimevalFromSteadyClock ()
 

Function Documentation

◆ CheckDropPrivsMustBeDisabled()

static void CheckDropPrivsMustBeDisabled ( pkgAcquire const &  Fetcher)
static

◆ CheckForBadItemAndFailIt()

static bool CheckForBadItemAndFailIt ( pkgAcquire::Item *const  Item,
pkgAcquire::MethodConfig const *const  Config,
pkgAcquireStatus *const  Log 
)
static

Definition at line 278 of file acquire.cc.

References _config, pkgAcquireStatus::Fail(), and HashStringList::usable().

Referenced by pkgAcquire::Enqueue().

◆ GetTimevalFromSteadyClock()

static struct timeval GetTimevalFromSteadyClock ( )
static

◆ IsAccessibleBySandboxUser()

static bool IsAccessibleBySandboxUser ( std::string const &  filename,
bool const  ReadWrite 
)
static

Definition at line 570 of file acquire.cc.

References flCombine(), flNotFile(), and RemoveFile().

Referenced by CheckDropPrivsMustBeDisabled().

◆ SetupAPTPartialDirectory()

static bool SetupAPTPartialDirectory ( std::string const &  grand,
std::string const &  parent,
std::string const &  postfix,
mode_t const  mode 
)
static