2016-04-06 01:01:57 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2016-11-11 18:36:50 +01:00
|
|
|
#include <antirollback.h>
|
2016-08-19 19:45:04 +02:00
|
|
|
#include <arch/early_variables.h>
|
2016-04-06 01:01:57 +02:00
|
|
|
#include <console/console.h>
|
|
|
|
#include <endian.h>
|
|
|
|
#include <lib/tpm2_tlcl_structures.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <tpm.h>
|
|
|
|
#include <vb2_api.h>
|
|
|
|
|
|
|
|
#include "tpm2_marshaling.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file provides interface between firmware and TPM2 device. The TPM1.2
|
|
|
|
* API was copied as is and relevant functions modified to comply with the
|
|
|
|
* TPM2 specification.
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void *tpm_process_command(TPM_CC command, void *command_body)
|
|
|
|
{
|
2017-03-25 06:38:45 +01:00
|
|
|
struct obuf ob;
|
|
|
|
struct ibuf ib;
|
|
|
|
size_t out_size;
|
2016-07-15 13:51:45 +02:00
|
|
|
size_t in_size;
|
2017-03-25 06:38:45 +01:00
|
|
|
const uint8_t *sendb;
|
2016-04-06 01:01:57 +02:00
|
|
|
/* Command/response buffer. */
|
2016-08-19 19:45:04 +02:00
|
|
|
static uint8_t cr_buffer[TPM_BUFFER_SIZE] CAR_GLOBAL;
|
|
|
|
|
|
|
|
uint8_t *cr_buffer_ptr = car_get_var_ptr(cr_buffer);
|
2016-04-06 01:01:57 +02:00
|
|
|
|
2017-03-25 06:38:45 +01:00
|
|
|
obuf_init(&ob, cr_buffer_ptr, sizeof(cr_buffer));
|
|
|
|
|
|
|
|
if (tpm_marshal_command(command, command_body, &ob) < 0) {
|
|
|
|
printk(BIOS_ERR, "command %#x\n", command);
|
2016-04-06 01:01:57 +02:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2017-03-25 06:38:45 +01:00
|
|
|
sendb = obuf_contents(&ob, &out_size);
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
in_size = sizeof(cr_buffer);
|
2017-03-25 06:38:45 +01:00
|
|
|
if (tis_sendrecv(sendb, out_size, cr_buffer_ptr, &in_size)) {
|
2016-04-06 01:01:57 +02:00
|
|
|
printk(BIOS_ERR, "tpm transaction failed\n");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2017-03-25 06:38:45 +01:00
|
|
|
ibuf_init(&ib, cr_buffer_ptr, in_size);
|
|
|
|
|
|
|
|
return tpm_unmarshal_response(command, &ib);
|
2016-04-06 01:01:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t tlcl_get_permanent_flags(TPM_PERMANENT_FLAGS *pflags)
|
|
|
|
{
|
|
|
|
printk(BIOS_INFO, "%s:%s:%d\n", __FILE__, __func__, __LINE__);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-09-30 21:53:19 +02:00
|
|
|
static uint32_t tlcl_send_startup(TPM_SU type)
|
2016-04-06 01:01:57 +02:00
|
|
|
{
|
2016-09-30 21:53:19 +02:00
|
|
|
struct tpm2_startup startup;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
startup.startup_type = type;
|
|
|
|
response = tpm_process_command(TPM2_Startup, &startup);
|
|
|
|
|
|
|
|
if (response && response->hdr.tpm_code &&
|
|
|
|
(response->hdr.tpm_code != TPM_RC_INITIALIZE)) {
|
|
|
|
printk(BIOS_INFO, "%s: Startup return code is %x\n",
|
|
|
|
__func__, response->hdr.tpm_code);
|
|
|
|
return TPM_E_IOERROR;
|
|
|
|
}
|
2016-04-06 01:01:57 +02:00
|
|
|
return TPM_SUCCESS;
|
2016-09-30 21:53:19 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_resume(void)
|
|
|
|
{
|
|
|
|
return tlcl_send_startup(TPM_SU_STATE);
|
2016-04-06 01:01:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_assert_physical_presence(void)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Nothing to do on TPM2 for this, use platform hierarchy availability
|
|
|
|
* instead.
|
|
|
|
*/
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-07-04 07:20:17 +02:00
|
|
|
/*
|
|
|
|
* The caller will provide the digest in a 32 byte buffer, let's consider it a
|
|
|
|
* sha256 digest.
|
|
|
|
*/
|
2016-04-06 01:01:57 +02:00
|
|
|
uint32_t tlcl_extend(int pcr_num, const uint8_t *in_digest,
|
|
|
|
uint8_t *out_digest)
|
|
|
|
{
|
2016-07-04 07:20:17 +02:00
|
|
|
struct tpm2_pcr_extend_cmd pcr_ext_cmd;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
pcr_ext_cmd.pcrHandle = HR_PCR + pcr_num;
|
|
|
|
pcr_ext_cmd.digests.count = 1;
|
|
|
|
pcr_ext_cmd.digests.digests[0].hashAlg = TPM_ALG_SHA256;
|
|
|
|
memcpy(pcr_ext_cmd.digests.digests[0].digest.sha256, in_digest,
|
|
|
|
sizeof(pcr_ext_cmd.digests.digests[0].digest.sha256));
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_PCR_Extend, &pcr_ext_cmd);
|
|
|
|
|
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
if (!response || response->hdr.tpm_code)
|
|
|
|
return TPM_E_IOERROR;
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_finalize_physical_presence(void)
|
|
|
|
{
|
|
|
|
/* Nothing needs to be done with tpm2. */
|
|
|
|
printk(BIOS_INFO, "%s:%s:%d\n", __FILE__, __func__, __LINE__);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_force_clear(void)
|
|
|
|
{
|
2016-07-04 00:56:41 +02:00
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_Clear, NULL);
|
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
|
|
|
|
if (!response || response->hdr.tpm_code)
|
|
|
|
return TPM_E_IOERROR;
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_get_flags(uint8_t *disable, uint8_t *deactivated,
|
|
|
|
uint8_t *nvlocked)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* TPM2 does not map directly into these flags TPM1.2 based firmware
|
|
|
|
* expects to be able to retrieve.
|
|
|
|
*
|
|
|
|
* In any case, if any of these conditions are present, the following
|
|
|
|
* firmware flow would be interrupted and will have a chance to report
|
|
|
|
* an error. Let's just hardcode an "All OK" response for now.
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (disable)
|
|
|
|
*disable = 0;
|
|
|
|
|
|
|
|
if (nvlocked)
|
|
|
|
*nvlocked = 1;
|
|
|
|
|
|
|
|
if (deactivated)
|
|
|
|
*deactivated = 0;
|
|
|
|
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-11-10 18:49:05 +01:00
|
|
|
static uint8_t tlcl_init_done CAR_GLOBAL;
|
|
|
|
|
|
|
|
/* This function is called directly by vboot, uses vboot return types. */
|
2016-04-06 01:01:57 +02:00
|
|
|
uint32_t tlcl_lib_init(void)
|
|
|
|
{
|
2016-11-10 18:49:05 +01:00
|
|
|
uint8_t done = car_get_var(tlcl_init_done);
|
|
|
|
if (done)
|
|
|
|
return VB2_SUCCESS;
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
if (tis_init())
|
|
|
|
return VB2_ERROR_UNKNOWN;
|
|
|
|
if (tis_open())
|
|
|
|
return VB2_ERROR_UNKNOWN;
|
2016-11-10 18:49:05 +01:00
|
|
|
|
|
|
|
car_set_var(tlcl_init_done, 1);
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
return VB2_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_physical_presence_cmd_enable(void)
|
|
|
|
{
|
|
|
|
printk(BIOS_INFO, "%s:%s:%d\n", __FILE__, __func__, __LINE__);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_read(uint32_t index, void *data, uint32_t length)
|
|
|
|
{
|
|
|
|
struct tpm2_nv_read_cmd nv_readc;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
memset(&nv_readc, 0, sizeof(nv_readc));
|
|
|
|
|
|
|
|
nv_readc.nvIndex = HR_NV_INDEX + index;
|
|
|
|
nv_readc.size = length;
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_NV_Read, &nv_readc);
|
|
|
|
|
|
|
|
/* Need to map tpm error codes into internal values. */
|
|
|
|
if (!response)
|
|
|
|
return TPM_E_READ_FAILURE;
|
|
|
|
|
|
|
|
printk(BIOS_INFO, "%s:%d index %#x return code %x\n",
|
|
|
|
__FILE__, __LINE__, index, response->hdr.tpm_code);
|
|
|
|
switch (response->hdr.tpm_code) {
|
|
|
|
case 0:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x28b:
|
|
|
|
return TPM_E_BADINDEX;
|
|
|
|
|
|
|
|
default:
|
|
|
|
return TPM_E_READ_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (length > response->nvr.buffer.t.size)
|
|
|
|
return TPM_E_RESPONSE_TOO_LARGE;
|
|
|
|
|
|
|
|
if (length < response->nvr.buffer.t.size)
|
|
|
|
return TPM_E_READ_EMPTY;
|
|
|
|
|
|
|
|
memcpy(data, response->nvr.buffer.t.buffer, length);
|
|
|
|
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_self_test_full(void)
|
|
|
|
{
|
|
|
|
struct tpm2_self_test st;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
st.yes_no = 1;
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_SelfTest, &st);
|
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_set_deactivated(uint8_t flag)
|
|
|
|
{
|
|
|
|
printk(BIOS_INFO, "%s:%s:%d\n", __FILE__, __func__, __LINE__);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_set_enable(void)
|
|
|
|
{
|
|
|
|
printk(BIOS_INFO, "%s:%s:%d\n", __FILE__, __func__, __LINE__);
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-07-04 02:08:10 +02:00
|
|
|
uint32_t tlcl_lock_nv_write(uint32_t index)
|
2016-04-06 01:01:57 +02:00
|
|
|
{
|
2016-07-04 02:08:10 +02:00
|
|
|
struct tpm2_response *response;
|
|
|
|
/* TPM Wll reject attempts to write at non-defined index. */
|
|
|
|
struct tpm2_nv_write_lock_cmd nv_wl = {
|
|
|
|
.nvIndex = HR_NV_INDEX + index,
|
|
|
|
};
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_NV_WriteLock, &nv_wl);
|
|
|
|
|
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
|
|
|
|
if (!response || response->hdr.tpm_code)
|
|
|
|
return TPM_E_IOERROR;
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_startup(void)
|
|
|
|
{
|
2016-09-30 21:53:19 +02:00
|
|
|
return tlcl_send_startup(TPM_SU_CLEAR);
|
2016-04-06 01:01:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t tlcl_write(uint32_t index, const void *data, uint32_t length)
|
|
|
|
{
|
|
|
|
struct tpm2_nv_write_cmd nv_writec;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
memset(&nv_writec, 0, sizeof(nv_writec));
|
|
|
|
|
|
|
|
nv_writec.nvIndex = HR_NV_INDEX + index;
|
|
|
|
nv_writec.data.t.size = length;
|
|
|
|
nv_writec.data.t.buffer = data;
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_NV_Write, &nv_writec);
|
|
|
|
|
2016-07-06 07:30:16 +02:00
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
|
2016-04-06 01:01:57 +02:00
|
|
|
/* Need to map tpm error codes into internal values. */
|
2016-07-06 07:30:16 +02:00
|
|
|
if (!response || response->hdr.tpm_code)
|
2016-04-06 01:01:57 +02:00
|
|
|
return TPM_E_WRITE_FAILURE;
|
|
|
|
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-07-04 00:24:23 +02:00
|
|
|
uint32_t tlcl_define_space(uint32_t space_index, size_t space_size)
|
2016-04-06 01:01:57 +02:00
|
|
|
{
|
|
|
|
struct tpm2_nv_define_space_cmd nvds_cmd;
|
|
|
|
struct tpm2_response *response;
|
2016-07-04 00:24:23 +02:00
|
|
|
/*
|
2016-11-11 18:36:50 +01:00
|
|
|
* Different sets of NVRAM space attributes apply to the "ro" spaces,
|
|
|
|
* i.e. those which should not be possible to delete or modify once
|
|
|
|
* the RO exits, and the rest of the NVRAM spaces.
|
2016-07-04 00:24:23 +02:00
|
|
|
*/
|
2016-11-11 18:36:50 +01:00
|
|
|
const TPMA_NV ro_space_attributes = {
|
|
|
|
.TPMA_NV_PPWRITE = 1,
|
|
|
|
.TPMA_NV_AUTHREAD = 1,
|
|
|
|
.TPMA_NV_PPREAD = 1,
|
|
|
|
.TPMA_NV_PLATFORMCREATE = 1,
|
|
|
|
.TPMA_NV_WRITE_STCLEAR = 1,
|
|
|
|
.TPMA_NV_POLICY_DELETE = 1,
|
|
|
|
};
|
|
|
|
const TPMA_NV default_space_attributes = {
|
|
|
|
.TPMA_NV_PPWRITE = 1,
|
|
|
|
.TPMA_NV_AUTHREAD = 1,
|
|
|
|
.TPMA_NV_PPREAD = 1,
|
|
|
|
.TPMA_NV_PLATFORMCREATE = 1,
|
2016-07-04 00:24:23 +02:00
|
|
|
};
|
2016-04-06 01:01:57 +02:00
|
|
|
|
|
|
|
/* Prepare the define space command structure. */
|
|
|
|
memset(&nvds_cmd, 0, sizeof(nvds_cmd));
|
|
|
|
|
|
|
|
nvds_cmd.publicInfo.dataSize = space_size;
|
|
|
|
nvds_cmd.publicInfo.nvIndex = HR_NV_INDEX + space_index;
|
|
|
|
nvds_cmd.publicInfo.nameAlg = TPM_ALG_SHA256;
|
|
|
|
|
2016-11-11 18:36:50 +01:00
|
|
|
/* RO only NV spaces should be impossible to destroy. */
|
|
|
|
if ((space_index == FIRMWARE_NV_INDEX) ||
|
|
|
|
(space_index == REC_HASH_NV_INDEX)) {
|
|
|
|
/*
|
|
|
|
* This policy digest was obtained using TPM2_PolicyPCR
|
|
|
|
* selecting only PCR_0 with a value of all zeros.
|
|
|
|
*/
|
|
|
|
const uint8_t pcr0_unchanged_policy[] = {
|
|
|
|
0x09, 0x93, 0x3C, 0xCE, 0xEB, 0xB4, 0x41, 0x11,
|
|
|
|
0x18, 0x81, 0x1D, 0xD4, 0x47, 0x78, 0x80, 0x08,
|
|
|
|
0x88, 0x86, 0x62, 0x2D, 0xD7, 0x79, 0x94, 0x46,
|
|
|
|
0x62, 0x26, 0x68, 0x8E, 0xEE, 0xE6, 0x6A, 0xA1
|
|
|
|
};
|
|
|
|
|
|
|
|
nvds_cmd.publicInfo.attributes = ro_space_attributes;
|
|
|
|
/*
|
|
|
|
* Use policy digest based on default pcr0 value. This makes
|
|
|
|
* sure that the space can not be deleted as soon as PCR0
|
|
|
|
* value has been extended from default.
|
|
|
|
*/
|
|
|
|
nvds_cmd.publicInfo.authPolicy.t.buffer = pcr0_unchanged_policy;
|
2017-03-11 00:23:24 +01:00
|
|
|
nvds_cmd.publicInfo.authPolicy.t.size =
|
|
|
|
sizeof(pcr0_unchanged_policy);
|
2016-11-11 18:36:50 +01:00
|
|
|
} else {
|
|
|
|
nvds_cmd.publicInfo.attributes = default_space_attributes;
|
|
|
|
}
|
2016-04-06 01:01:57 +02:00
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_NV_DefineSpace, &nvds_cmd);
|
|
|
|
printk(BIOS_INFO, "%s: response is %x\n",
|
|
|
|
__func__, response ? response->hdr.tpm_code : -1);
|
|
|
|
|
|
|
|
if (!response)
|
|
|
|
return TPM_E_NO_DEVICE;
|
|
|
|
|
2016-11-11 23:15:31 +01:00
|
|
|
/* Map TPM2 retrun codes into common vboot represenation. */
|
2017-03-09 03:02:24 +01:00
|
|
|
switch (response->hdr.tpm_code) {
|
2016-11-11 23:15:31 +01:00
|
|
|
case TPM2_RC_SUCCESS:
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
case TPM2_RC_NV_DEFINED:
|
|
|
|
return TPM_E_NV_DEFINED;
|
|
|
|
default:
|
|
|
|
return TPM_E_INTERNAL_INCONSISTENCY;
|
|
|
|
}
|
2016-04-06 01:01:57 +02:00
|
|
|
}
|
2017-01-11 00:44:42 +01:00
|
|
|
|
|
|
|
uint32_t tlcl_disable_platform_hierarchy(void)
|
|
|
|
{
|
|
|
|
struct tpm2_response *response;
|
|
|
|
struct tpm2_hierarchy_control_cmd hc = {
|
|
|
|
.enable = TPM_RH_PLATFORM,
|
|
|
|
.state = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_Hierarchy_Control, &hc);
|
|
|
|
|
|
|
|
if (!response || response->hdr.tpm_code)
|
|
|
|
return TPM_E_INTERNAL_INCONSISTENCY;
|
|
|
|
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
2017-03-08 18:23:11 +01:00
|
|
|
|
|
|
|
uint32_t tlcl_cr50_enable_nvcommits(void)
|
|
|
|
{
|
|
|
|
uint16_t sub_command = TPM2_CR50_SUB_CMD_NVMEM_ENABLE_COMMITS;
|
|
|
|
struct tpm2_response *response;
|
|
|
|
|
|
|
|
printk(BIOS_INFO, "Enabling cr50 nvmem commmits\n");
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_CR50_VENDOR_COMMAND, &sub_command);
|
|
|
|
|
|
|
|
if (response == NULL || (response && response->hdr.tpm_code)) {
|
|
|
|
if (response)
|
|
|
|
printk(BIOS_INFO, "%s: failed %x\n", __func__,
|
|
|
|
response->hdr.tpm_code);
|
|
|
|
else
|
|
|
|
printk(BIOS_INFO, "%s: failed\n", __func__);
|
|
|
|
return TPM_E_IOERROR;
|
|
|
|
}
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|
2017-03-23 00:01:53 +01:00
|
|
|
|
|
|
|
uint32_t tlcl_cr50_enable_update(uint16_t timeout_ms,
|
|
|
|
uint8_t *num_restored_headers)
|
|
|
|
{
|
|
|
|
struct tpm2_response *response;
|
|
|
|
uint16_t command_body[] = {
|
|
|
|
TPM2_CR50_SUB_CMD_TURN_UPDATE_ON, timeout_ms
|
|
|
|
};
|
|
|
|
|
|
|
|
printk(BIOS_INFO, "Checking cr50 for pending updates\n");
|
|
|
|
|
|
|
|
response = tpm_process_command(TPM2_CR50_VENDOR_COMMAND, command_body);
|
|
|
|
|
|
|
|
if (!response || response->hdr.tpm_code)
|
|
|
|
return TPM_E_INTERNAL_INCONSISTENCY;
|
|
|
|
|
|
|
|
*num_restored_headers = response->vcr.num_restored_headers;
|
|
|
|
return TPM_SUCCESS;
|
|
|
|
}
|