Assessment reports>Security Policy>Threat Model>disableSecurityPolicy

Function: disableSecurityPolicy(ISecurityPolicyPlugin _policy, ISecurityPolicyPlugin _pointer)

This disables a security policy, removing it from the linked list.

Inputs

  • _policy

    • Control: Full.

    • Constraints: != SENTINEL && != 0x0.

    • Impact: The policy.

  • _pointer

    • Control: Full.

    • Constraints: Must point to a valid policy.

    • Impact: Reference point in the linked list to remove _policy.

Branches and code coverage (including function calls)

Intended branches

  • Properly disable/enable p1 policy.

Negative behavior

  • Security Policy cannot be 0x0.

  • Security Policy cannot be SENTINEL.

  • Disabled security policy cannot be disabled.

  • Reverts in the case of invalid pointer.

Zellic © 2024Back to top ↑