svn commit: r352297 - stable/11/sbin/camcontrol

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


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

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

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

Modified: stable/11/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/11/sbin/camcontrol/camcontrol.c	Fri Sep 13 15:21:18 2019	(r352296)
+++ stable/11/sbin/camcontrol/camcontrol.c	Fri Sep 13 15:21:36 2019	(r352297)
@@ -1569,6 +1569,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