aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/random
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2024-05-22 13:31:47 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2024-05-22 13:41:49 +0000
commitf99f0ee14e3af81c23150a6a340259ca8a33d01a (patch)
treed89c2174bd84df6c1552b7e98e7a29f421fe2272 /libexec/rc/rc.d/random
parent2efbd480f1d37cbadc5af4476a87e5336c493910 (diff)
rc.d: add a service jails config to all base system services
This gives more permissions to services (e.g. network access to services which require this) when they are started as an automatic service jail. The sshd patch is important for the sshd-related functionality as described in the man-page in the service jails part. The location of the added env vars is supposed to allow overriding them in rc.conf, and to hard-disable the use of svcj for some parts where it doesn't make sense or will not work. Only a subset of all of the services are fully tested (I'm running this since more than a year with various services started as service jails). The untested parts should be most of the time ok, in some edge-cases more permissions are needed inside the service jail. Differential Revision: https://reviews.freebsd.org/D40371
Diffstat (limited to 'libexec/rc/rc.d/random')
-rwxr-xr-xlibexec/rc/rc.d/random4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/random b/libexec/rc/rc.d/random
index 1900f6cef5a4..c34f0d1f86b4 100755
--- a/libexec/rc/rc.d/random
+++ b/libexec/rc/rc.d/random
@@ -151,4 +151,8 @@ random_stop()
}
load_rc_config $name
+
+# doesn't make sense to run in a svcj: config setting
+random_svcj="NO"
+
run_rc_command "$1"