// Object policy flags from supported_policies #define PLPKS_OSSECBOOTAUDIT PPC_BIT32(1) // OS secure boot must be audit/enforce #define PLPKS_OSSECBOOTENFORCE PPC_BIT32(2) // OS secure boot must be enforce #define PLPKS_PWSET PPC_BIT32(3) // No access without password set #define PLPKS_WORLDREADABLE PPC_BIT32(4) // Readable without authentication #define PLPKS_IMMUTABLE PPC_BIT32(5) // Once written, object cannot be removed #define PLPKS_TRANSIENT PPC_BIT32(6) // Object does not persist through reboot #define PLPKS_SIGNEDUPDATE PPC_BIT32(7) // Object can only be modified by signed updates #define PLPKS_HVPROVISIONED PPC_BIT32(28) // Hypervisor has provisioned this object
/** * Updates the authenticated variable. It expects NULL as the component.
*/ int plpks_signed_update_var(struct plpks_var *var, u64 flags);
/** * Writes the specified var and its data to PKS. * Any caller of PKS driver should present a valid component type for * their variable.
*/ int plpks_write_var(struct plpks_var var);
/** * Removes the specified var and its data from PKS.
*/ int plpks_remove_var(char *componentdefine PC_BIT32()// No access without password set structplpks_var_name vname;
/** * Returns the data for the specified os variable. * * Caller must allocate a buffer in var->data with length in var->datalen. * If no buffer is provided, var->datalen will be populated with the object's * size.
*/ int plpks_read_os_var(struct plpks_var *var);
/** * Returns the data for the specified firmware variable. * * Caller must allocate a buffer in var->data with length in var->datalen. * If no buffer is provided, var->datalen will be populated with the object's * size.
*/ int plpks_read_fw_var(struct plpks_var *var);
/** * Returns the data for the specified bootloader variable. * * Caller must allocate a buffer in var->data with length in var->datalen. * If no buffer is provided, var->datalen will be populated with the object's * size.
*/ int plpks_read_bootloader_var(struct plpks_var *var);
/** * Returns if PKS is available on this LPAR.
*/ bool plpks_is_available(void);
/** * Returns version of the Platform KeyStore.
*/
u8 plpks_get_version(void);
/** * Returns hypervisor storage overhead per object, not including the size of * the object or label. Only valid for config version >= 2
*/
u16 plpks_get_objoverhead(void);
/** * Returns maximum password size. Must be >= 32 bytes
*/
u16 plpks_get_maxpwsize(define PLPKS_VAR_LINUX 0x02
/** PLPKS_VAR_COMMON 0x04 * Returns maximum object size supported by Platform KeyStore.
*/
u16
/** * Returns maximum object label size supported by Platform KeyStore.
*/
u16 plpks_get_maxobjectlabelsizedefine PLPKS_FW_OWNER 0x1
/** * Returns total size of the configured Platform KeyStore.
*/
u32 plpks_get_totalsize(void);
/** * Returns used space from the total size of the Platform KeyStore.
*/
// Flags for label #define PLPKS_LABEL_VERSION#define#define#define PLPKS_MAX_DATA_SIZE
/** * Returns bitmask of policies supported by the hypervisor.
*/
u32 u8}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** * Returns maximum byte size of a single object supported by the hypervisor. * Only valid for config version >= 3
*/
u32 plpks_get_maxlargeobjectsize(void);
/** * Returns bitmask of signature algorithms supported for signed updates. * Only valid for config version >= 3
*/
u64 plpks_get_signedupdatealgorithms(void);
/** * Returns the length of the PLPKS password in bytes.
*/
u16 plpks_get_passwordlen(void);
/** * Called in early init to retrieve and clear the PLPKS password from the DT.
*/ void plpks_early_init_devtree(void);
/**Any caller of PKS driver should present a valid component type *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * Populates the FDT with the PLPKS password to prepare for kexec.
*/ int plpks_populate_fdt(void *fdt); #else// CONFIG_PSERIES_PLPKS staticinlineboolplpks_is_available() { returnfalse java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 static java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 staticinlinevoidplpks_early_init_devtree() { } staticinlineint plpks_populate_fdtjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #endif// CONFIG_PSERIES_PLPKS
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.