class PlatSec |
Class containing Platform Security related methods
Private Member Functions | |
---|---|
UIMPORT_C TInt | EmitDiagnostic(TPlatSecDiagnostic &, const char *) |
Public Member Enumerations | |
---|---|
enum | TConfigSetting { EPlatSecEnforcement, EPlatSecDiagnotics, EPlatSecProcessIsolation, EPlatSecEnforceSysBin, EPlatSecLocked } |
TInt | CapabilityCheckFail | ( | TInt | aHandle, |
TCapability | aCapability, | |||
const char * | aContextText | |||
) | [static, inline] |
TInt aHandle | |
TCapability aCapability | |
const char * aContextText |
TInt | CapabilityCheckFail | ( | TInt | aHandle, |
const TCapabilitySet & | aMissingCaps, | |||
const char * | aContextText | |||
) | [static, inline] |
TInt aHandle | |
const TCapabilitySet & aMissingCaps | |
const char * aContextText |
TInt | CapabilityCheckFail | ( | RMessagePtr2 | aMessage, |
TCapability | aCapability, | |||
const char * | aContextText | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
TCapability aCapability | |
const char * aContextText |
TInt | CapabilityCheckFail | ( | RMessagePtr2 | aMessage, |
const TCapabilitySet & | aMissingCaps, | |||
const char * | aContextText | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
const TCapabilitySet & aMissingCaps | |
const char * aContextText |
TInt | CapabilityCheckFail | ( | TInt | aHandle, |
TCapability | aCapability | |||
) | [static, inline] |
TInt aHandle | |
TCapability aCapability |
TInt | CapabilityCheckFail | ( | TInt | aHandle, |
const TCapabilitySet & | aMissingCaps | |||
) | [static, inline] |
TInt aHandle | |
const TCapabilitySet & aMissingCaps |
TInt | CapabilityCheckFail | ( | RMessagePtr2 | aMessage, |
TCapability | aCapability | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
TCapability aCapability |
TInt | CapabilityCheckFail | ( | RMessagePtr2 | aMessage, |
const TCapabilitySet & | aMissingCaps | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
const TCapabilitySet & aMissingCaps |
IMPORT_C TInt | ConfigSetting | ( | TConfigSetting | aSetting | ) | [static] |
A test function to return the state of a given Platform Security configuration setting. A value representing the setting. 0 represents 'OFF', 1 represents 'ON' Other values may be returned for some settings, these exceptions are documented in the description for individual enumerations of TConfigSetting.
TestTConfigSetting aSetting | An enumerated value representing the required setting |
TInt | CreatorCapabilityCheckFail | ( | TCapability | aCapability, |
const char * | aContextText | |||
) | [static, inline] |
TCapability aCapability | |
const char * aContextText |
TInt | CreatorCapabilityCheckFail | ( | const TCapabilitySet & | aMissingCaps, |
const char * | aContextText | |||
) | [static, inline] |
const TCapabilitySet & aMissingCaps | |
const char * aContextText |
TInt | CreatorCapabilityCheckFail | ( | TCapability | aCapability | ) | [static, inline] |
TCapability aCapability |
TInt | CreatorCapabilityCheckFail | ( | const TCapabilitySet & | aMissingCaps | ) | [static, inline] |
const TCapabilitySet & aMissingCaps |
TInt | CreatorPolicyCheckFail | ( | const SSecurityInfo & | aMissingCaps, |
const char * | aContextText | |||
) | [static, inline] |
const SSecurityInfo & aMissingCaps | |
const char * aContextText |
TInt | CreatorPolicyCheckFail | ( | const SSecurityInfo & | aMissingCaps | ) | [static, inline] |
const SSecurityInfo & aMissingCaps |
UIMPORT_C TInt | EmitDiagnostic | ( | TPlatSecDiagnostic & | aDiagnostic, |
const char * | aContextText | |||
) | [private, static] |
TPlatSecDiagnostic & aDiagnostic | |
const char * aContextText |
IMPORT_C TBool | IsCapabilityEnforced | ( | TCapability | aCapability | ) | [static] |
Tests whether a given Platform Security capability is enforced by the system.
The capability has been explicitly disabled on this system by use of the PlatSecDisabledCaps configuration parameter
Platform Security checks have been globally disabled by use of the EPlatSecEnforcement configuration parameter
The capability value is unknown. I.e. Is not part of the set of supported capabilities. See TCapabilitySet::SetAllSupported().
A non-zero value if the capability is enforced, zero if it is not.
TCapability aCapability | The capability to test |
TInt | LoaderCapabilityViolation | ( | const TDesC8 & | aImporterName, |
const TDesC8 & | aFileName, | |||
const SCapabilitySet & | aMissingCaps | |||
) | [static, inline] |
const TDesC8 & aImporterName | |
const TDesC8 & aFileName | |
const SCapabilitySet & aMissingCaps |
TInt | LoaderCapabilityViolation | ( | RProcess | aLoadingProcess, |
const TDesC8 & | aFileName, | |||
const SCapabilitySet & | aMissingCaps | |||
) | [static, inline] |
RProcess aLoadingProcess | |
const TDesC8 & aFileName | |
const SCapabilitySet & aMissingCaps |
TInt | PolicyCheckFail | ( | TInt | aHandle, |
const SSecurityInfo & | aMissing, | |||
const char * | aContextText | |||
) | [static, inline] |
TInt aHandle | |
const SSecurityInfo & aMissing | |
const char * aContextText |
TInt | PolicyCheckFail | ( | RMessagePtr2 | aMessage, |
const SSecurityInfo & | aMissingCaps, | |||
const char * | aContextText | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
const SSecurityInfo & aMissingCaps | |
const char * aContextText |
TInt | PolicyCheckFail | ( | RSessionBase | aSession, |
const SSecurityInfo & | aMissingCaps, | |||
const char * | aContextText | |||
) | [static, inline] |
RSessionBase aSession | |
const SSecurityInfo & aMissingCaps | |
const char * aContextText |
TInt | PolicyCheckFail | ( | TInt | aHandle, |
const SSecurityInfo & | aMissing | |||
) | [static, inline] |
TInt aHandle | |
const SSecurityInfo & aMissing |
TInt | PolicyCheckFail | ( | RMessagePtr2 | aMessage, |
const SSecurityInfo & | aMissingCaps | |||
) | [static, inline] |
RMessagePtr2 aMessage | |
const SSecurityInfo & aMissingCaps |
An enumeration used with PlatSecSetting() PlatSecSetting()
TestEPlatSecEnforcement |
Used to request the value of the PlatSecEnforcement setting |
EPlatSecDiagnotics |
Used to request the value of the PlatSecDiagnotics setting |
EPlatSecProcessIsolation |
Used to request the value of the PlatSecProcessIsolation setting |
EPlatSecEnforceSysBin |
Used to request the value of the PlatSecEnforceSysBin setting |
EPlatSecLocked |
Used to request the value of the PlatSecLocked setting |