svn commit: r352296 - stable/12/sbin/camcontrol

Alexander Motin mav at FreeBSD.org
Fri Sep 13 15:21:19 UTC 2019


Author: mav
Date: Fri Sep 13 15:21:18 2019
New Revision: 352296
URL: https://svnweb.freebsd.org/changeset/base/352296

Log:
  MFC r352257: Report Trusted Computing feature set support.
  
  It practically means the device is SED.

Modified:
  stable/12/sbin/camcontrol/camcontrol.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/12/sbin/camcontrol/camcontrol.c	Fri Sep 13 15:20:30 2019	(r352295)
+++ stable/12/sbin/camcontrol/camcontrol.c	Fri Sep 13 15:21:18 2019	(r352296)
@@ -1736,6 +1736,9 @@ atacapprint(struct ata_params *parm)
 	} else {
 		printf("no\n");
 	}
+	printf("Trusted Computing              %s\n",
+	    ((parm->tcg & 0xc000) == 0x4000) && (parm->tcg & ATA_SUPPORT_TCG) ?
+	    "yes" : "no");
 	printf("encrypts all user data         %s\n",
 		parm->support3 & ATA_ENCRYPTS_ALL_USER_DATA ? "yes" : "no");
 	printf("Sanitize                       ");


More information about the svn-src-all mailing list