From 3ba7362f0bf1bef8ddc76cd311576d9348a94fe0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Sep 2021 07:12:30 -0500 Subject: script/lei: umask(077) before execve While my MUA also runs umask(077) unconditionally, not all MUAs do. Additionally, pagers may support writing its buffer to disk, so ensure anything else we spawn has umask(077). --- script/lei | 1 + 1 file changed, 1 insertion(+) (limited to 'script') diff --git a/script/lei b/script/lei index 2d84487a..591013e3 100755 --- a/script/lei +++ b/script/lei @@ -53,6 +53,7 @@ my $exec_cmd = sub { } my %env = map { split(/=/, $_, 2) } splice(@argv, $argc); @ENV{keys %env} = values %env; + umask 077; exec(@argv); warn "exec: @argv: $!\n"; POSIX::_exit(1); -- cgit v1.2.3-24-ge0c7