guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: system: Explicitly set umask to 022 in /etc/profile.


From: Ludovic Courtès
Subject: 02/02: system: Explicitly set umask to 022 in /etc/profile.
Date: Tue, 08 Mar 2016 22:33:06 +0000

civodul pushed a commit to branch master
in repository guix.

commit 112024826d3283284654475a50ccef81c697e2c9
Author: Ludovic Courtès <address@hidden>
Date:   Tue Mar 8 23:30:53 2016 +0100

    system: Explicitly set umask to 022 in /etc/profile.
    
    Fixes <http://bugs.gnu.org/22650>.
    Reported by myglc2 <address@hidden>.
    
    * gnu/system.scm (operating-system-etc-service)[profile]: Invoke
    'umask'.
---
 gnu/system.scm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index c0037a5..5be24ba 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\"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]