feat(agent-sec-core): add bundled loongshield build flow#123
Open
chenzongyao200127 wants to merge 1 commit intoalibaba:mainfrom
Open
feat(agent-sec-core): add bundled loongshield build flow#123chenzongyao200127 wants to merge 1 commit intoalibaba:mainfrom
chenzongyao200127 wants to merge 1 commit intoalibaba:mainfrom
Conversation
|
|
Author
|
@kid9 @edonyzpc @casparant Please Take A Look in your spare time:) |
Signed-off-by: Zongyao Chen <ZongYao.Chen@linux.alibaba.com>
Author
recheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a bundled
loongshieldbuild flow toagent-sec-coreand updates the build/docs flow around it.agent-sec-corenow exposes a singlemake build-allentrypoint that always buildslinux-sandboxand attempts to build the bundledthird_party/loongshieldsubmodule when the host environment is supported. If the host does not passloongshield'senv-check, theloongshieldbuild is skipped andagent-sec-corestill builds successfully.Changes
loongshieldas a git submodule undersrc/agent-sec-core/third_party/loongshieldmake loongshieldandmake build-alltargets inagent-sec-coremake installto install bundledloongshieldwhen the host supports building itloongshieldbuild prerequisites firstscripts/build-all.shflow to initialize the submodule and usemake build-allWhy
Before this change,
agent-sec-coreonly documented/buildslinux-sandboxdirectly. This PR makes the bundled hardening dependency part of the standard build flow while preserving compatibilityon hosts that cannot build
loongshield.Testing
make -n build-allinsrc/agent-sec-coreto verify the new build flow and fallback behaviorRelated Issue
#106
Type of Change
Scope
cosh(copilot-shell)sec-core(agent-sec-core)skill(os-skills)sight(agentsight)Checklist
cosh: Lint passes, type check passes, and tests passsec-core(Rust):cargo clippy -- -D warningsandcargo fmt --checkpasssec-core(Python): Ruff format and pytest passskill: Skill directory structure is valid and shell scripts pass syntax checksight:cargo clippy -- -D warningsandcargo fmt --checkpasspackage-lock.json/Cargo.lock)Testing
Additional Notes