Services: Intrusion Detection: Administration - rule enabled state as posted, descending rule sort (#11409)
* Services: Intrusion Detection: Administration - set a rule's enabled state as posted
setRuleAction() passes getPost('enabled', 'int') to toggleRuleAction(),
whose $enabled == null is also true for 0, so posting enabled 0 toggled
the rule: a disabled rule got enabled.
* Services: Intrusion Detection: Administration - sort installed rules descending
The sort string ended in a space ("sid desc "), and rulecache.py's
search() takes the last space-separated word as the direction, so desc
fell back to asc.
(cherry picked from commit 444dddfd239f5bed0da4535858f5d4b3f840be6d)
[clang] Remove unused local variables (NFC) (#249464)
This patch removes unused local variables across clang/.
Note that these variables do not trigger -Wunused-variable because
their types have non-trivial constructors or destructors. Their
initializers have no side effects on surrounding state.
Assisted-by: Antigravity
Merge tag 'x86-urgent-2026-12-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Ingo Molnar:
- Handle DR7 accesses in the #VC handler after GHCB
teardown on SEV guests (Ashish Kalra)
* tag 'x86-urgent-2026-12-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/sev: Handle DR7 accesses in the #VC handler after GHCB teardown
vriffle: add package
it very quickly displays txt files using GPU with some effects
I'll remove this shortly, I'm just putting it here in case someone
else was interested in trying this - it's not generally useful, just a
tech demo.
security/openssl*: Turn the FIPS option off by default
The FIPS provider these ports build is not built as its FIPS 140-3
Security Policy requires, so it is not validated. Turn the FIPS
option off by default in security/openssl, openssl30, openssl40 and
openssl41, and point users to security/openssl-fips, which installs
the validated OpenSSL 3.5.9 FIPS provider (CMVP certificate #5586).
Update FIPS_DESC and add a comment by OPTIONS_DEFAULT to say so, and
add an upgrade pkg-message for users who load lib/ossl-modules/fips.so
today, since upgrading removes it.
Bump PORTREVISION: the default package no longer contains fips.so
or fipsmodule.cnf.
Signed-off-by: Bernard Spil <brnrd at FreeBSD.org>
security/openssl*: Turn the FIPS option off by default
The FIPS provider these ports build is not built as its FIPS 140-3
Security Policy requires, so it is not validated. Turn the FIPS
option off by default in security/openssl, openssl30, openssl40 and
openssl41, and point users to security/openssl-fips, which installs
the validated OpenSSL 3.5.9 FIPS provider (CMVP certificate #5586).
Update FIPS_DESC and add a comment by OPTIONS_DEFAULT to say so, and
add an upgrade pkg-message for users who load lib/ossl-modules/fips.so
today, since upgrading removes it.
Bump PORTREVISION: the default package no longer contains fips.so
or fipsmodule.cnf.
Signed-off-by: Bernard Spil <brnrd at FreeBSD.org>
security/openssl-fips: Add new port
Install only the OpenSSL 3.5.9 FIPS provider (fips.so and
fipsmodule.cnf), the module validated under FIPS 140-3 CMVP
certificate #5586.
The build follows Section 11 of the module's Security Policy:
./Configure enable-fips, make, make install_fips. No patches, extra
Configure options or ports CFLAGS/LDFLAGS are applied. The build
fails if the FIPS run-time security checks or power-up self-tests are
disabled, or if fips-jitter (non-compliant) is enabled. After
install, the staged files are checked against the build output and
with "openssl fipsinstall -verify", so the module's HMAC integrity
value stays valid. make test loads the staged module, which runs its
self-tests, and checks that it reports version 3.5.9.
Files go under lib/openssl-fips and etc/openssl-fips so they do not
conflict with the FIPS provider from security/openssl*, which is not
built as the Security Policy requires. pkg-message explains how to
[3 lines not shown]
security/openssl-fips: Add new port
Install only the OpenSSL 3.5.9 FIPS provider (fips.so and
fipsmodule.cnf), the module validated under FIPS 140-3 CMVP
certificate #5586.
The build follows Section 11 of the module's Security Policy:
./Configure enable-fips, make, make install_fips. No patches, extra
Configure options or ports CFLAGS/LDFLAGS are applied. The build
fails if the FIPS run-time security checks or power-up self-tests are
disabled, or if fips-jitter (non-compliant) is enabled. After
install, the staged files are checked against the build output and
with "openssl fipsinstall -verify", so the module's HMAC integrity
value stays valid. make test loads the staged module, which runs its
self-tests, and checks that it reports version 3.5.9.
Files go under lib/openssl-fips and etc/openssl-fips so they do not
conflict with the FIPS provider from security/openssl*, which is not
built as the Security Policy requires. pkg-message explains how to
[3 lines not shown]
[compiler-rt][LoongArch]: Fix __clear_cache on FreeBSD (#249441)
The LoongArch implementation of __clear_cache() is guarded by __linux__,
so FreeBSD falls through to compilerrt_abort(). The ibar 0 instruction
is architectural and not Linux-specific; use it for all LoongArch
targets. This fixes JIT users such as PCRE2 and LLVM's
sys::Memory::setExecutable().
Signed-off-by: xiaoqiang zhao <zxq_yx_007 at 163.com>
hid: Account for truncated variable items in the report layout
When a variable main item has more than MAXLOCCNT usages, the parser
returns only MAXLOCCNT of them and never advances the position past
the rest. Every later field in the report is placed too early and
hid_report_size() under-reports the report length.
On multitouch touchpads with large vendor reports this gives wrong
contact and button data when the fields share that report, and short
report buffers, so usbhid(4) and hidraw(4) truncate those reports.
PR: 300050
MFC after: 3 days
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D62523