From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.151; helo=mga17.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9821820886F55 for ; Thu, 14 Feb 2019 18:49:18 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2019 18:49:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,371,1544515200"; d="scan'208";a="133733138" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.8]) by FMSMGA003.fm.intel.com with ESMTP; 14 Feb 2019 18:49:16 -0800 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Eric Dong , Ray Ni , Chao Zhang , Jiewen Yao Date: Fri, 15 Feb 2019 10:49:10 +0800 Message-Id: <20190215024911.7704-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 Subject: [PATCH v1 0/1] Add Security feature set support for ATA devices X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2019 02:49:18 -0000 This patch actually depends on a series that is currently under review: https://www.mail-archive.com/edk2-devel@lists.01.org/msg51142.html One can get this patch together with the above-mentioned series at: https://github.com/hwu25/edk2/tree/hddpassword_v1 Uni-tests performed for the patch: * Password can be set/update/disabled to an ATA device via the HII page; * A popup windows will show up if a device is set with password. And after inputting the correct password, the data can be accessed. Otherwise, data cannot be accessed; * A device with password set can be auto-unlocked during the S3 resume. Cc: Eric Dong Cc: Ray Ni Cc: Chao Zhang Cc: Jiewen Yao Hao Wu (1): SecurityPkg/HddPassword: Add Security feature set support for ATA dev SecurityPkg/SecurityPkg.dsc | 6 + SecurityPkg/HddPassword/HddPasswordDxe.inf | 75 + SecurityPkg/HddPassword/HddPasswordPei.inf | 54 + SecurityPkg/HddPassword/HddPasswordCommon.h | 61 + SecurityPkg/HddPassword/HddPasswordDxe.h | 148 + SecurityPkg/HddPassword/HddPasswordHiiDataStruc.h | 63 + SecurityPkg/HddPassword/HddPasswordPei.h | 64 + SecurityPkg/HddPassword/HddPassword.vfr | 188 ++ SecurityPkg/HddPassword/HddPasswordDxe.c | 2816 ++++++++++++++++++++ SecurityPkg/HddPassword/HddPasswordPei.c | 461 ++++ SecurityPkg/HddPassword/HddPasswordStrings.uni | 48 + 11 files changed, 3984 insertions(+) create mode 100644 SecurityPkg/HddPassword/HddPasswordDxe.inf create mode 100644 SecurityPkg/HddPassword/HddPasswordPei.inf create mode 100644 SecurityPkg/HddPassword/HddPasswordCommon.h create mode 100644 SecurityPkg/HddPassword/HddPasswordDxe.h create mode 100644 SecurityPkg/HddPassword/HddPasswordHiiDataStruc.h create mode 100644 SecurityPkg/HddPassword/HddPasswordPei.h create mode 100644 SecurityPkg/HddPassword/HddPassword.vfr create mode 100644 SecurityPkg/HddPassword/HddPasswordDxe.c create mode 100644 SecurityPkg/HddPassword/HddPasswordPei.c create mode 100644 SecurityPkg/HddPassword/HddPasswordStrings.uni -- 2.12.0.windows.1