[Bug 286218] security/tpm2*: Various fixes and added tpm2-openssl

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 20 Apr 2025 05:42:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286218

            Bug ID: 286218
           Summary: security/tpm2*: Various fixes and added tpm2-openssl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: andrea@cocito.eu
                CC: tstruk@gmail.com
                CC: tstruk@gmail.com
             Flags: maintainer-feedback?(tstruk@gmail.com)

Created attachment 259721
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259721&action=edit
git format-patch --stdout

Please find attached a patch that fixes various issues in tpm2-* ports.

About security/tpm2-abrmd:
- Renamed the function write_all() to g_write_all() as the first name clashed
with a function in causing coredumps
- Removed tpm2-abrmd-devd.conf, as devd does not get notifications for
/dev/tpm0  
- Added pkg-message asking the user to properly edit /etc/devfs.conf
- Cleaned up tpm2-abrmd.conf for dbus (we do not have a group called "root")

About security/tpm2-tss:
- Removed attempts to access non-existing /dev/tpmrm0

About security/tpm2-openssl:
- Created the port, it compiles and passes essential tests
- Please take note that by default openssl looks for its modules in
/usr/lib/ossl-modules, so we install tpm2.so in there

All the best,

--Nemesi

-- 
You are receiving this mail because:
You are the assignee for the bug.