loongshield is the top-level command entry point for operator-facing features. The public contract is the CLI, not the internal Lua module layout.
Current bundled defaults are centered on OpenAnolis / Alibaba Cloud Linux style RPM hosts. On other RPM-based systems, pass an explicit SEHarden profile or SBOM URL instead of assuming the built-in defaults fit your environment.
loongshield <subcommand> [options]
Local builds produce the binary at build/src/daemon/loongshield. Installed systems should expose it as loongshield.
- Stable within a major release: documented subcommand names, documented option meanings, documented exit codes, and documented configuration inputs consumed through the CLI.
- Not stable: internal Lua module paths, embedded runtime layout, build internals, and human-readable log or debug wording.
- If a release breaks documented CLI behavior incompatibly, it should use a new major version.
version: print the build version and commit.seharden: audit or reinforce a security profile.rpm: verify an installed RPM against a remote SBOM.lua-lsm: inspect and manage Lua-LSM policies through securityfs.
Run subcommand help directly:
loongshield seharden --help loongshield rpm --help loongshield lua-lsm --help
loongshield version loongshield seharden --config agentos_baseline loongshield rpm --verify bash loongshield lua-lsm status
- SEHarden usage: seharden-cli.md
- SEHarden profile format: seharden-profile-format.md
- RPM verification usage: rpm-cli.md
- Lua-LSM usage: lua-lsm-cli.md