| #
f99f0ee1
|
| 22-May-2024 |
Alexander Leidinger <netchild@FreeBSD.org> |
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 servic
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
show more ...
|
| #
d0b2dbfa
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
51da4b19
|
| 11-Aug-2020 |
Cy Schubert <cy@FreeBSD.org> |
When booting a system with WITHOUT_IPFILTER the following errors are encountered at boot time:
rcorder: requirement `ipfs' in file `/etc/rc.d/netif' has no providers. rcorder: requirement `ipfilter'
When booting a system with WITHOUT_IPFILTER the following errors are encountered at boot time:
rcorder: requirement `ipfs' in file `/etc/rc.d/netif' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/netif' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/netwait' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/net_watchdog' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/securelevel' has no providers.
Listing its own requrements in BEFORE rather than use REQUIRE of non-optional scripts resolves this issue.
The issue was discovered and patched by glebius at Netflix.
Submitted by: glebius Reported by: glebius MFC after: 1 week
show more ...
|
| #
795be686
|
| 23-Jul-2020 |
Cy Schubert <cy@FreeBSD.org> |
Load ipfilter, ipnat, and ippool rules, and start ipmon in a vnet jail.
PR: 248109 Reported by: joeb1@a1poweruser.com MFC after: 2 weeks
|
| #
d19c1c8e
|
| 22-Nov-2018 |
Cy Schubert <cy@FreeBSD.org> |
Allow forced start of ipmon in special cases where testing is desired (or other special cases) and when ipfilter is disabled in rc.conf but started by other means.
MFC after: 1 week
|
| #
0696600c
|
| 17-Oct-2018 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update bec
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc.
Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb)
show more ...
|
| #
1135e97b
|
| 28-Jul-2018 |
Brad Davis <brd@FreeBSD.org> |
Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan.
Approved by: will (mentor) Differential Revision:
Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan.
Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16466
show more ...
|
| #
6c1a5e83
|
| 23-Apr-2016 |
Lars Engels <lme@FreeBSD.org> |
- Add descriptions to most of the rc scripts. Those are mostly taken from their daemon's manpage and probably improved. - Consistently use "filesystem" not "file system".
Approved by: bapt, brueff
- Add descriptions to most of the rc scripts. Those are mostly taken from their daemon's manpage and probably improved. - Consistently use "filesystem" not "file system".
Approved by: bapt, brueffer Differential Revision: D452
show more ...
|
| #
70273855
|
| 30-Nov-2014 |
Enji Cooper <ngie@FreeBSD.org> |
Remove duplicate FILESYSTEMS REQUIRE
|
| #
854cb10a
|
| 10-Sep-2013 |
Cy Schubert <cy@FreeBSD.org> |
ipfilter 5.1.2 no longer supports sysctl. Use ipf -V to determine if available (the kernel module is loaded or compiled into the kernel).
Approved by: glebius (mentor) Approved by: re (blanket)
|
| #
8801556b
|
| 11-Sep-2012 |
David E. O'Brien <obrien@FreeBSD.org> |
Simply things so that "#REQUIRE: FILESYSTEMS" means the file systems are fully "ready to go".
'FILESYSTEMS' states: "This is a dummy dependency, for services which require file systems to be mounted
Simply things so that "#REQUIRE: FILESYSTEMS" means the file systems are fully "ready to go".
'FILESYSTEMS' states: "This is a dummy dependency, for services which require file systems to be mounted before starting." However, we have 'var' which is was run after 'FILESYSTEMS' and can mount /var if it already isn't mounted. Furthermore, several scripts cannot use /var until 'cleanvar' has done its thing. Thus "FILESYSTEMS" hasn't really meant all critical file systems are fully usable.
show more ...
|
| #
801c4383
|
| 14-Jan-2012 |
Doug Barton <dougb@FreeBSD.org> |
Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned.
The concept of set_rcvar() was nice in theory, but the forks it creates are a
Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned.
The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones.
During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps.
show more ...
|
| #
32c50473
|
| 01-Aug-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not (in /etc/rc.conf).
This fixes an apparent confusion between test(1) and sh(1) syntax for AND/OR.
PR: conf/149036 Submitted by
Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not (in /etc/rc.conf).
This fixes an apparent confusion between test(1) and sh(1) syntax for AND/OR.
PR: conf/149036 Submitted by: pluknet MFC after: 1 week
show more ...
|
| #
e3c46a33
|
| 08-Dec-2007 |
Doug Barton <dougb@FreeBSD.org> |
Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough.
|
| #
7bd5b79d
|
| 02-Apr-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add a dummy script, FILESYSTEMS, which depends on root and mountcritlocal and takes over mountcritlocal's role as the early / late divider. This makes it far easier to add rc scripts which need to r
Add a dummy script, FILESYSTEMS, which depends on root and mountcritlocal and takes over mountcritlocal's role as the early / late divider. This makes it far easier to add rc scripts which need to run early, such as a startup script for zfs, which is right around the corner.
This change should be a no-op; I have verified that the only change in rcorder's output is the insertion of FILESYSTEMS immediately after mountcritlocal.
MFC after: 3 weeks
show more ...
|
| #
df19ed6a
|
| 28-Oct-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Use ${name} in pathnames where appropriate. The sendmail script already was on this way, but it didn't reach the end of it yet.
|
| #
337338ee
|
| 07-Oct-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Remove the requirement for the FreeBSD keyword as it no longer makes any sense.
Discussed with: dougb, brooks MFC after: 3 days
|
| #
28b81da2
|
| 09-Sep-2004 |
David E. O'Brien <obrien@FreeBSD.org> |
Restore NetBSD SCM ID.
Submitted by: delphij@beastie.frontfree.net
|
| #
da48dbe1
|
| 20-Apr-2004 |
Darren Reed <darrenr@FreeBSD.org> |
apply patch so pr can be closed
PR: misc/56715 Submitted by: grant@NetBSD.org Reviewed by: darrenr
|
| #
bd57d5b0
|
| 08-Mar-2004 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Mark scripts as not usable inside a jail by adding keyword 'nojail'.
Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
|
| #
9dd342fe
|
| 17-Jan-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than nece
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary).
The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
show more ...
|
| #
1afce003
|
| 17-Jan-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD.
show more ...
|
| #
5a44cde9
|
| 14-Jul-2003 |
Mike Makonnen <mtm@FreeBSD.org> |
Make sure ipmon is run after cleaning up in /var. Otherwise, we would lose it's pid file. Also, cleanup the depencies in rc.d/cleanvar
PR: bin/53516
|
| #
8cf06adb
|
| 24-Apr-2003 |
Mike Makonnen <mtm@FreeBSD.org> |
Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc. o group them together so they run one right after another o use the NetBSD supplied ipfs script instead of tacking it on to the
Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc. o group them together so they run one right after another o use the NetBSD supplied ipfs script instead of tacking it on to the end of ipnat o Load the ipl module in ipnat and ipfilter, if it's not already loaded o In ipmon and ipnat show a warning if neither ipfilter nor ipnat is enabled or the ipl module is not loaded, and exit
Approved by: markm (mentor) (implicit) Tested by: leafy <leafy@leafy.idv.tw>
show more ...
|
| #
14308510
|
| 12-Oct-2002 |
Jens Schweikhardt <schweikh@FreeBSD.org> |
Fix style bugs: * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespac
Fix style bugs: * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line.
Approved by: silence from gordon
show more ...
|