Class

FwupdSecurityAttr

Description [src]

class Fwupd.SecurityAttr : GObject.Object {
  parent_instance: GObject
}

A Host Security ID attribute that represents something that was measured.

Hierarchy

hierarchy this FwupdSecurityAttr ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

fwupd_security_attr_new

Creates a new security attribute.

Available since: 1.5.0

Functions

fwupd_security_attr_array_from_variant

Creates an array of new security attributes using serialized data.

Available since: 1.5.0

fwupd_security_attr_flag_from_string

Converts a string to an enumerated flag.

Available since: 1.7.1

fwupd_security_attr_flag_to_string

Returns the printable string for the flag.

Available since: 1.5.0

fwupd_security_attr_flag_to_suffix

Returns the string suffix for the flag.

Available since: 1.5.0

fwupd_security_attr_from_variant

Creates a new security attribute using serialized data.

Available since: 1.5.0

fwupd_security_attr_result_from_string

Converts a string to an enumerated result.

Available since: 1.7.1

fwupd_security_attr_result_to_string

Returns the printable string for the result enum.

Available since: 1.5.0

Instance methods

fwupd_security_attr_add_flag

Adds a specific attribute flag to the attribute.

Available since: 1.5.0

fwupd_security_attr_add_guid

Adds a device GUID to the attribute. This indicates the GUID in some way contributed to the result decided.

Available since: 1.7.0

fwupd_security_attr_add_guids

Adds device GUIDs to the attribute. This indicates the GUIDs in some way contributed to the result decided.

Available since: 1.7.0

fwupd_security_attr_add_metadata

Adds metadata to the attribute which may be used in the name.

Available since: 1.5.0

fwupd_security_attr_add_obsolete

Adds an attribute appstream_id to obsolete. The obsoleted attribute will not contribute to the calculated HSI value or be visible in command line tools.

Available since: 1.5.0

fwupd_security_attr_copy

Makes a full (deep) copy of a security attribute.

Available since: 1.7.1

fwupd_security_attr_from_json

Loads a fwupd security attribute from a JSON node.

Available since: 1.7.1

fwupd_security_attr_get_appstream_id

Gets the AppStream ID.

Available since: 1.5.0

fwupd_security_attr_get_created

Gets when the attribute was created.

Available since: 1.7.1

fwupd_security_attr_get_flags

Gets the self flags.

Available since: 1.5.0

fwupd_security_attr_get_guids

Gets the list of attribute GUIDs. The GUID values will not modify the calculated HSI value.

Available since: 1.7.0

fwupd_security_attr_get_level

Gets the HSI level.

Available since: 1.5.0

fwupd_security_attr_get_metadata

Gets private metadata from the attribute which may be used in the name.

Available since: 1.5.0

fwupd_security_attr_get_name

Gets the attribute name.

Available since: 1.5.0

fwupd_security_attr_get_obsoletes

Gets the list of attribute obsoletes. The obsoleted attributes will not contribute to the calculated HSI value or be visible in command line tools.

Available since: 1.5.0

fwupd_security_attr_get_plugin

Gets the plugin that created the attribute.

Available since: 1.5.0

fwupd_security_attr_get_result

Gets the optional HSI result.

Available since: 1.5.0

fwupd_security_attr_get_result_fallback

Gets the optional fallback HSI result.

Available since: 1.7.1

fwupd_security_attr_get_url

Gets the attribute URL.

Available since: 1.5.0

fwupd_security_attr_has_flag

Finds if the attribute has a specific attribute flag.

Available since: 1.5.0

fwupd_security_attr_has_guid

Finds out if a specific GUID was added to the attribute.

Available since: 1.7.0

fwupd_security_attr_has_obsolete

Finds out if the attribute obsoletes a specific appstream_id.

Available since: 1.5.0

fwupd_security_attr_set_appstream_id

Sets the AppStream ID.

Available since: 1.5.0

fwupd_security_attr_set_created

Sets when the attribute was created.

Available since: 1.7.1

fwupd_security_attr_set_flags

Sets the attribute flags.

Available since: 1.5.0

fwupd_security_attr_set_level

Sets the HSI level. A level of FWUPD_SECURITY_ATTR_LEVEL_NONE is not used for the HSI calculation.

Available since: 1.5.0

fwupd_security_attr_set_name

Sets the attribute name.

Available since: 1.5.0

fwupd_security_attr_set_plugin

Sets the plugin that created the attribute.

Available since: 1.5.0

fwupd_security_attr_set_result

Sets the optional HSI result. This is required because some attributes may be a “success” when something is locked or may be “failed” if found.

Available since: 1.5.0

fwupd_security_attr_set_result_fallback

Sets the optional fallback HSI result. The fallback may represent the old state, or a state that may be considered equivalent.

Available since: 1.7.1

fwupd_security_attr_set_url

Sets the attribute result.

Available since: 1.5.0

fwupd_security_attr_to_json

Adds a fwupd security attribute to a JSON builder.

Available since: 1.5.0

fwupd_security_attr_to_string

Builds a text representation of the object.

Available since: 1.5.0

fwupd_security_attr_to_variant

Serialize the security attribute.

Available since: 1.5.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct FwupdSecurityAttrClass {
  GObjectClass parent_class;
  void (* _fwupd_reserved1) (
void
  );
  void (* _fwupd_reserved2) (
void
  );
  void (* _fwupd_reserved3) (
void
  );
  void (* _fwupd_reserved4) (
void
  );
  void (* _fwupd_reserved5) (
void
  );
  void (* _fwupd_reserved6) (
void
  );
  void (* _fwupd_reserved7) (
void
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
_fwupd_reserved1
void (* _fwupd_reserved1) (
void
  )
  No description available.
_fwupd_reserved2
void (* _fwupd_reserved2) (
void
  )
  No description available.
_fwupd_reserved3
void (* _fwupd_reserved3) (
void
  )
  No description available.
_fwupd_reserved4
void (* _fwupd_reserved4) (
void
  )
  No description available.
_fwupd_reserved5
void (* _fwupd_reserved5) (
void
  )
  No description available.
_fwupd_reserved6
void (* _fwupd_reserved6) (
void
  )
  No description available.
_fwupd_reserved7
void (* _fwupd_reserved7) (
void
  )
  No description available.