#include <sys/xattr.h>
#include <dirent.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include "cvmfs_suid_util.h"
#include "sanitizer.h"
#include "util/platform.h"
Go to the source code of this file.
|
static void | GetCredentials (uid_t *calling_uid, uid_t *effective_uid) |
|
static void | ExecAsRoot (const char *binary, const char *arg1, const char *arg2, const char *arg3, const char *arg4) |
|
static void | ForkAndExecAsRoot (const char *binary, const char *arg1, const char *arg2, const char *arg3, const char *arg4) |
|
static void | Remount (const string &path, const RemountType how) |
|
static void | Mount (const string &path) |
|
static void | Umount (const string &path) |
|
static void | LazyUmount (const string &path) |
|
static void | KillCvmfs (const string &fqrn) |
|
static bool | ClearDirectory (const string &path) |
|
static int | CleanupDirectory (const string &path) |
|
static int | DoSynchronousScratchCleanup (const string &fqrn) |
|
static int | DoAsynchronousScratchCleanup (const string &fqrn) |
|
static void | Usage (const string &exe, FILE *output) |
|
int | main (int argc, char *argv[]) |
|
static int CleanupDirectory |
( |
const string & |
path | ) |
|
|
static |
static bool ClearDirectory |
( |
const string & |
path | ) |
|
|
static |
static int DoAsynchronousScratchCleanup |
( |
const string & |
fqrn | ) |
|
|
static |
static int DoSynchronousScratchCleanup |
( |
const string & |
fqrn | ) |
|
|
static |
static void ExecAsRoot |
( |
const char * |
binary, |
|
|
const char * |
arg1, |
|
|
const char * |
arg2, |
|
|
const char * |
arg3, |
|
|
const char * |
arg4 |
|
) |
| |
|
static |
static void ForkAndExecAsRoot |
( |
const char * |
binary, |
|
|
const char * |
arg1, |
|
|
const char * |
arg2, |
|
|
const char * |
arg3, |
|
|
const char * |
arg4 |
|
) |
| |
|
static |
static void GetCredentials |
( |
uid_t * |
calling_uid, |
|
|
uid_t * |
effective_uid |
|
) |
| |
|
static |
static void KillCvmfs |
( |
const string & |
fqrn | ) |
|
|
static |
static void LazyUmount |
( |
const string & |
path | ) |
|
|
static |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static void Mount |
( |
const string & |
path | ) |
|
|
static |
static void Remount |
( |
const string & |
path, |
|
|
const RemountType |
how |
|
) |
| |
|
static |
static void Umount |
( |
const string & |
path | ) |
|
|
static |
static void Usage |
( |
const string & |
exe, |
|
|
FILE * |
output |
|
) |
| |
|
static |
const char* kSpoolArea = "/var/spool/cvmfs" |