Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2017 10:52:21 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        Lu Tung-Pin <lutungpin@openmailbox.org>, <freebsd-current@freebsd.org>, <des@freebsd.org>, <sjg@juniper.net>
Subject:   Re: Fix /etc/rc.d/random umask handling (/entropy permissions)
Message-ID:  <43886.1485197541@kaos.jnpr.net>
In-Reply-To: <20170121220136.GA59654@stack.nl>
References:  <14f5a2fdf191c33e4ed1dc882b288e81@openmailbox.org> <20170121220136.GA59654@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Jilles Tjoelker <jilles@stack.nl> wrote:
> Index: etc/rc.d/random
> ===================================================================
> --- etc/rc.d/random	(revision 311446)
> +++ etc/rc.d/random	(working copy)
> @@ -20,12 +20,14 @@
>  
>  save_dev_random()
>  {
> +	oumask=`umask`

why not simply use a sub-shell to tighten umask

(umask 077; what-ever)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43886.1485197541>