Re: Fix /etc/rc.d/random umask handling (/entropy permissions)

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Mon, 23 Jan 2017 10:52:21 -0800
Jilles Tjoelker <jilles_at_stack.nl> wrote:
> Index: etc/rc.d/random
> ===================================================================
> --- etc/rc.d/random	(revision 311446)
> +++ etc/rc.d/random	(working copy)
> _at__at_ -20,12 +20,14 _at__at_
>  
>  save_dev_random()
>  {
> +	oumask=`umask`

why not simply use a sub-shell to tighten umask

(umask 077; what-ever)
Received on Mon Jan 23 2017 - 17:52:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC