aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/advanced-topics/diff-hook.xml
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2019-05-10 20:59:39 -0400
committerGraham Christensen <graham@grahamc.com>2019-05-12 13:17:26 -0400
commit6df61db0600ca73ccd51e3e5bec5312a04e99da1 (patch)
tree66de67c9b1ce6b90ea9d643d95d9a9d750b3c376 /doc/manual/advanced-topics/diff-hook.xml
parentc78686e411e0a14cff51836fe6c35d7584171df3 (diff)
diff hook: execute as the build user, and pass the temp dir
Diffstat (limited to 'doc/manual/advanced-topics/diff-hook.xml')
-rw-r--r--doc/manual/advanced-topics/diff-hook.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/manual/advanced-topics/diff-hook.xml b/doc/manual/advanced-topics/diff-hook.xml
index d2613f6df..fb4bf819f 100644
--- a/doc/manual/advanced-topics/diff-hook.xml
+++ b/doc/manual/advanced-topics/diff-hook.xml
@@ -46,17 +46,15 @@ file containing:
#!/bin/sh
exec &gt;&amp;2
echo "For derivation $3:"
-/run/current-system/sw/bin/runuser -u nobody -- /run/current-system/sw/bin/diff -r "$1" "$2"
+/run/current-system/sw/bin/diff -r "$1" "$2"
</programlisting>
-<warning>
- <para>The diff hook can be run as root. Take care to run as little
- as possible as root, for this example we use <command>runuser</command>
- to drop privileges.
- </para>
-</warning>
</para>
+<para>The diff hook is executed by the same user and group who ran the
+build. However, the diff hook does not have write access to the store
+path just built.</para>
+
<section>
<title>
Spot-Checking Build Determinism