summary refs log tree commit diff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-09-21 12:19:39 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-09-21 12:19:39 +0000
commit8d06842a761bab72a2886420c6c47f9daedf30e3 (patch)
tree075106ebd1bcfbda99dc46dd1a6684149ec503c7 /src/libstore/globals.hh
parent89cd0f57b174ec4dc7e0a4e6015ed401272d9aad (diff)
downloadguix-8d06842a761bab72a2886420c6c47f9daedf30e3.tar.gz
* Configuration options for trusted local builds.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index e2ae2ed655..327b1bbc3d 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -2,6 +2,7 @@
 #define __GLOBALS_H
 
 #include <string>
+#include <set>
 #include "util.hh"
 
 using namespace std;
@@ -52,6 +53,15 @@ extern unsigned int maxBuildJobs;
    database. */
 extern bool readOnlyMode;
 
+/* Whether to allow builds by root.  Corresponds to the
+   `build-allow-root' configuration option. */
+extern bool buildAllowRoot;
+
+/* The list of users under which root-initiated builds can be
+   performed.  Correspons to the `build-users' configuration
+   option. */
+extern list<string> buildUsers;
+
 
 string querySetting(const string & name, const string & def);