asmc: add raw SMC key read/write interface
This patch adds a debugging interface to read and write arbitrary
Apple SMC keys by name through sysctl, enabling hardware exploration
and control of undocumented features.
The interface provides four sysctls under dev.asmc.0.raw.*:
- key - Set the 4-character SMC key name (e.g., "AUPO")
- value - Read/write key value as a hex string
- len - Auto-detected key value length (can be overridden)
- type - Read-only 4-character type string (e.g., "ui8", "flt")
Implementation includes a new asmc_key_getinfo() function using SMC
command 0x13 to query key metadata. The interface automatically
detects key lengths and types, uses hex string encoding for
arbitrary binary values, and is safe for concurrent access via
CTLFLAG_NEEDGIANT.
This interface was essential for discovering that the AUPO key
[5 lines not shown]
sysutils/unixexec: New port: Attach stdin/stdout of a command to a Unix socket
unixexec attaches the stdin/stdout of a command to a Unix socket:
* immediately exec(3)'s the command: the data is not proxied via another process
* does not multiplex access to a socket
WWW: https://github.com/DtxdF/unixexec/
HBSD: Bump ports-mgmt/pkg to 2.7.1
This also resolves the merge conflict in ports-mgmt/pkg/distinfo.
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
routing: Make ip[6]_tryforward() FIB-aware for local traffic
`ip_tryforward()` and `ip6_tryforward()` checks whether the destination
address is local or not without considering if it belongs to the current FIB.
If the destination is local but not in our FIB, forward it instead
of returning it to ip_input().
PR: 292319
Reviewed by: zlei
MFC after: 1 week
MFC to: stable/15
Differential Revision: https://reviews.freebsd.org/D56353
HBSD: Restore accidentally deleted file
I accidentally deleted the patch to the configure script for
multimedia/ffmpeg. This patch is maintained by our upstream, FreeBSD.
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
devel/got: update to 0.124
User-visible changes:
- fix a segfault in tog while using the & search feature
- expand tabs in log messages displayed by tog diff to prevent misalignment
HBSD: Fix build of multimedia/ffmpeg
ffmpeg was recently updated, causing issues with our patches for
_FORTIFY_SOURCE=2 support. Fix the build by rebasing the patches for the
updated version.
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
www/web2ldap: Fix build with setuptools 81.0.0
This patch make web2ldap build against both setuptools 63.1.0 (currently
in ports) and 81.0.0.
PR: 294472
cad/yosys: Update 0.63 => 0.64
Summary: * Strip all the executables, not only the main one
Approved by: yuri@ (maintainer, Mentor)
Approved by: db@, yuri@ (Mentors, implicit)
Differential Revision: https://reviews.freebsd.org/D56397