System Variable Entry: SECURELOAD

← Prev | ↑ Chapter | Next → | Index | Symbols

System Variable Entry: SECURELOAD

Name

SECURELOAD

Type

integer, range 0 to 2

Default

1

Read-Only

yes

Scope

registry; saved in registry

Description

Controls whether executable files are restricted to being loaded from trusted folders only

Read/Written By

  • arxload
  • autoarxload
  • autoload
  • findtrustedfile
  • load
  • open
  • vl-vbaload

Compatibility

AutoCAD and BricsCAD. AutoCAD all; BricsCAD V20+. Divergence: type AutoCAD Integer, BricsCAD Short; default AutoCAD 1, may be locked by the CAD administrator, BricsCAD 0; read-only AutoCAD False, BricsCAD True; saved-in AutoCAD Registry, BricsCAD Not saved.

clautolisp

Per-dialect default and settability:

Dialect Default Settable?
:autocad-2026 1 yes
:bricscad-v26 0 no (RO)
:strict 1 yes
:lax 0 yes
:clautolisp 1 yes

Because clautolisp is headless there is no trust prompt: value 1 means warn-and-proceed (a [sec-untrusted-load] diagnostic, then the load succeeds) and value 2 means block (ERRNO + a security error). --strict defaults to 1, not 2, because it denotes the dialect intersection (portability), not maximum lockdown; a program raises SECURELOAD to 2 itself when it wants hard blocking. Seedable from the SECURELOAD environment variable (precedence setvar > env > dialect default). The gate also applies to open for gated-extension files. Full rules: Normative Rules: Secure File Loading and Trust Model (chapter 11).