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 — GitHub - openanolis/loongshield: security shield framework for alinux/anolis

BranchesTags
Open more actions menu

Latest commit

 

History

167 Commits
167 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/loong-code-review
.agents/skills/loong-code-review
 
 
.githooks
.githooks
 
 
.github
.github
 
 
LICENSES
LICENSES
 
 
cmake/modules
cmake/modules
 
 
deps
deps
 
 
dist
dist
 
 
docs
docs
 
 
profiles
profiles
 
 
src
src
 
 
tests
tests
 
 
tools
tools
 
 
.clangd
.clangd
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.yamlfmt
.yamlfmt
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
RELEASING.md
RELEASING.md
 
 
THIRD_PARTY_LICENSES.md
THIRD_PARTY_LICENSES.md
 
 
VERSION
VERSION
 
 
docker-compose.yml
docker-compose.yml
 
 
run_tests.lua
run_tests.lua
 
 

Repository files navigation

Loongshield

Loongshield is host security tooling for RPM-based Linux systems. It currently combines profile-driven auditing, optional hardening actions, and RPM package file verification in a native C/Lua runtime.

Usage Examples

loongshield seharden --scan --config dengbao_3 --verbose
loongshield rpm --verify nginx --config https://example.com/sbom.json
loongshield lua-lsm status

Quick Start

Build requirements and contributor workflow live in docs/developer/build-and-test.md.

For a fresh checkout on a compatible RPM-based host:

make bootstrap
make test

Build outputs are written under build/, including:

build/src/daemon/loongshield
build/src/daemon/loonjit

If your host is not suitable for a native build, use the container workflow in docs/developer/docker-development.md.

Common Commands

make bootstrap
make test
make install
make rpm
make rpm-in-docker

Environment Notes

  • Development, testing, and packaging workflows assume an RPM-based Linux environment.
  • loongshield seharden defaults to the bundled cis_alinux_3 profile.
  • loongshield rpm defaults to the OpenAnolis SBOM service.
  • loongshield lua-lsm requires a kernel with Lua-LSM enabled and never auto-loads policies.
  • On other RPM-based distributions, expect to pass an explicit --config or --sbom-url.

Project Scope

  • Currently focused on host hardening and verification on RPM-based Linux with systemd.
  • The optional kernel module under src/kmod/ is not required for normal userspace workflows.
  • Lua-LSM support manages a kernel-provided built-in LSM through securityfs;
  • The project is released under the MIT License.

Versioning And Compatibility

  • The stable public surface for 1.x is the documented CLI.
  • That contract includes documented subcommands, option meanings, exit codes, and documented SEHarden profile semantics consumed by the CLI.
  • Internal Lua module names, embedded runtime layout, generated assets, and developer-oriented debug output are not stable external APIs.
  • Human-readable operator output may be refined between compatible releases. Automation should prefer exit codes, explicit flags, and explicit profile or SBOM settings over parsing presentation text.
  • If a release removes or redefines documented CLI behavior incompatibly, it should use a new major version instead of dropping back to 0.x.

Documentation

  • Contributing: CONTRIBUTING.md
  • Overview: docs/README.md
  • Top-level CLI: docs/reference/loongshield-cli.md
  • SEHarden usage: docs/reference/seharden-cli.md
  • SEHarden profile format: docs/reference/seharden-profile-format.md
  • RPM verification usage: docs/reference/rpm-cli.md
  • Lua-LSM usage: docs/reference/lua-lsm-cli.md
  • Build and test: docs/developer/build-and-test.md
  • Docker workflow: docs/developer/docker-development.md
  • Submodule source policy: docs/developer/submodule-sources.md
  • Architecture notes: docs/design/runtime-architecture.md, docs/design/clean-architecture.md

Community

  • Release history: CHANGELOG.md
  • Release checklist: RELEASING.md

About

security shield framework for alinux/anolis

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

4 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.