aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/system.cc')
-rw-r--r--paludis/util/system.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index cf4c42d..65a0188 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -24,6 +24,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
+#include "config.h"
/** \file
* Implementation of various system utilities.
@@ -132,3 +133,13 @@ paludis::make_env_command(const std::string & cmd)
return MakeEnvCommand(cmd, "");
}
+const std::string
+paludis::make_sandbox_command(const std::string & cmd)
+{
+#if HAVE_SANDBOX
+ return "sandbox " + cmd;
+#else
+ return cmd;
+#endif
+}
+