diff options
author | delphij <delphij@FreeBSD.org> | 2014-07-22 06:40:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-07-22 06:40:27 +0000 |
commit | 35981fe0b79d60c14993ee2edf573daceb90730f (patch) | |
tree | ea04a7c9f0100989b5be3b9fba68b1b45ea54d3e /libexec | |
parent | 24f74ef8035b94d6468332d64de211feb44d5b7d (diff) | |
download | FreeBSD-src-35981fe0b79d60c14993ee2edf573daceb90730f.zip FreeBSD-src-35981fe0b79d60c14993ee2edf573daceb90730f.tar.gz |
Don't save entropy inside jails.
As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.
PR: conf/126744
Submitted by: Eugene Grosbein <eugen grosbein net> (with minor changes)
MFC after: 1 week
Approved by: so (des)
Diffstat (limited to 'libexec')
-rwxr-xr-x | libexec/save-entropy/save-entropy.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/save-entropy/save-entropy.sh b/libexec/save-entropy/save-entropy.sh index e96b543..880a988 100755 --- a/libexec/save-entropy/save-entropy.sh +++ b/libexec/save-entropy/save-entropy.sh @@ -42,6 +42,8 @@ elif [ -r /etc/rc.conf ]; then . /etc/rc.conf 2>/dev/null fi +[ $(/sbin/sysctl -n security.jail.jailed) = 0 ] || exit 0 + case ${entropy_dir} in [Nn][Oo]) exit 0 |