Hi,

I think we shouldn't save entropy inside jails, as the data is not going
to be used by rc script (pjd@126744).  If there is no objections, I will
commit this changeset on January 1, 2014.

Index: libexec/save-entropy/save-entropy.sh
===================================================================
--- libexec/save-entropy/save-entropy.sh        (revision 259828)
+++ libexec/save-entropy/save-entropy.sh        (working copy)
@@ -42,6 +42,10 @@ elif [ -r /etc/rc.conf ]; then
        . /etc/rc.conf 2>/dev/null
 fi

+if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
+       exit 0
+fi
+
 case ${entropy_dir} in
 [Nn][Oo])
        exit 0

Cheers,
-- 
Xin LI <delp...@delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to