Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/etc/rc.d



Module Name:    src
Committed By:   martin
Date:           Fri Nov 26 16:50:18 UTC 2021

Modified Files:
        src/etc/rc.d [netbsd-9]: npf_boot pf_boot

Log Message:
Pull up following revision(s) (requested by sborrill in ticket #1377):

        etc/rc.d/npf_boot: revision 1.5
        etc/rc.d/pf_boot: revision 1.8

Load rc configuration based on rcvar, not name, so that correct settings
in /etc/rc.conf.d are loaded.

Usually this does not matter as rcvar and name are set to the same value.

For pf_boot and npf_boot, rcvar is set to pf and npf respectively.

Prior to the change, if:
rc.conf contains nfp=YES
rc.conf.d/npf does not exist
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=YES

If:
rc.conf contains npf=NO (or is not set)
rc.conf.d/npf contains npf=YES
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=NO

This means that in the latter case, at boot time the npfctl start command
is never run and the firewall is not operational.


To generate a diff of this commit:
cvs rdiff -u -r1.1.4.1 -r1.1.4.2 src/etc/rc.d/npf_boot
cvs rdiff -u -r1.4.52.1 -r1.4.52.2 src/etc/rc.d/pf_boot

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index