GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — loongshield/docs/reference/loongshield-cli.md at main · openanolis/loongshield

Expand file tree

/

loongshield-cli.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
50 lines (35 loc) · 1.75 KB
/

loongshield-cli.md

Copy path

File metadata and controls

50 lines (35 loc) · 1.75 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

loongshield CLI

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.

Syntax

loongshield <subcommand> [options]

Local builds produce the binary at build/src/daemon/loongshield. Installed systems should expose it as loongshield.

Compatibility Contract

  • 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.

Subcommands

  • 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

Typical Usage Examples

loongshield version
loongshield seharden --config agentos_baseline
loongshield rpm --verify bash
loongshield lua-lsm status

Documentation Map

  • 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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.