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/
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
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
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
devel/freebsd-sysroot: force rebuild with pkg 2.7.1
pkg 2.7.1 will make sure at installation this port is not expecting
any shlib to be required to the exception of the private libraries
which are not part of this sysroot, but some of the libraries in this
sysroot are linked to those libprivate so they are listed in the
required field, add NO_SHLIB_REQUIRES_GLOB=libprivate* to get rid of
those.
PR: 293874
ports-mgmt/pkg: update to 2.7.1
Major Changes:
- install: respect -q
- vital: now explicitly state the SAT solver issue are due to a vital package
- lua: add pkg.exec_capture, a pkg.exec version capturing stdout/stderr
- Honor --repository flag for disabled repos as documented
Other Changes:
- version: add IGNORE_MAJOR to pkg.conf and document it
- pkg_config: accept int as boolean converted via != 0
- lock: do not error in expected (un)lock state
- backup_libraries: now fully respects rootdir
- backup libraries: atomic replacement of the library
- DB: loudly complain if the DB cannot be opened
- shlibs: also remove ignored shlibs provided from shlibs required
devel/prjpeppercorn111: Remove port
This ports gets removed immediately without a grace period as it is only
useful in combination with the devel/nextpnr* ports which no longer support
this particular version of prjpeppercorn.
Reviewed by: rene
loopback: Account for packet drops
Make loopback packet drops more obvious by reporting them
in interface stats visable via netstat -ni
Since loopback uses netisr, packets can be dropped if the
netisr queue overflows. These drops are visible via
netisr -Q, but its not an obvious place to look.
Differential Revision: https://reviews.freebsd.org/D56356
Reviewed by: glebius, tuexen
Sponsored by: Netflix