blob: ffe30212be30dbc6e8a9d0deadea6f120f0e2c91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* get_sandbox_confd.c
*
* Util functions.
*
* Copyright 1999-2009 Gentoo Foundation
* Licensed under the GPL-2
*/
#include "headers.h"
#include "sbutil.h"
char *get_sandbox_confd(char *path)
{
save_errno();
if (is_env_on(ENV_SANDBOX_TESTING))
snprintf(path, SB_PATH_MAX, "%s/etc/sandbox.d/",
getenv("abs_top_srcdir"));
else
strcpy(path, SANDBOX_CONFD_DIR);
restore_errno();
return path;
}
|