aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-03-08 23:30:53 +0100
committerLudovic Courtès <ludo@gnu.org>2016-03-08 23:30:53 +0100
commit112024826d3283284654475a50ccef81c697e2c9 (patch)
treef5b3c1c0fc7db5681b8a63b292324a9a21d57eb2
parent5284339d9d31c97146d92ee3f860ba5c70b77c46 (diff)
downloadguix-112024826d3283284654475a50ccef81c697e2c9.tar
guix-112024826d3283284654475a50ccef81c697e2c9.tar.gz
system: Explicitly set umask to 022 in /etc/profile.
Fixes <http://bugs.gnu.org/22650>. Reported by myglc2 <myglc2@gmail.com>. * gnu/system.scm (operating-system-etc-service)[profile]: Invoke 'umask'.
-rw-r--r--gnu/system.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/system.scm b/gnu/system.scm
index c0037a5820..5be24ba586 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -478,6 +478,9 @@ then
export `cat /etc/environment | cut -d= -f1`
fi
+# Set the umask, notably for users logging in via 'lsh'.
+# See <http://bugs.gnu.org/22650>.
+umask 022
# Allow GStreamer-based applications to find plugins.
export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"