xtask policy: allow .c and .py for small Linux tools #234

Open
fsrajner wants to merge 1 commit from upstream-pr/234 into main
fsrajner commented 2026-11-29 22:42:12 +00:00 (Migrated from github.com)

Imported from DexNom/VIctory. Originally posted by fsrajner on 2026-11-29T22:42:12Z.


Allows two more text source types in the asset policy's allowlist, for small tools that help running the runtime under Linux/Proton (the next two PRs: an LD_PRELOAD shim in C, and a profiler that needs no root, in C and Python).

Why it is safe for the policy's aim: they are readable source like the .sh and .ps1 scripts already allowed, each a few KB, built or run on the user's own machine. No binaries and no game data come with them; the size limit and the other checks stay as they are.

cargo xtask policy passes.

🤖 Generated with Claude Code

<!-- greyfinch-sync:DexNom/VIctory:issue:5555935829 --> Imported from [DexNom/VIctory](https://github.com/DexNom/VIctory/pull/234). Originally posted by [fsrajner](https://github.com/fsrajner) on 2026-11-29T22:42:12Z. --- Allows two more text source types in the asset policy's allowlist, for small tools that help running the runtime under Linux/Proton (the next two PRs: an `LD_PRELOAD` shim in C, and a profiler that needs no root, in C and Python). Why it is safe for the policy's aim: they are readable source like the `.sh` and `.ps1` scripts already allowed, each a few KB, built or run on the user's own machine. No binaries and no game data come with them; the size limit and the other checks stay as they are. `cargo xtask policy` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/234:upstream-pr/234'
git switch 'upstream-pr/234'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/234'
git switch 'upstream-pr/234'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/234'
git switch 'upstream-pr/234'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/234'
git switch 'main'
git merge --squash 'upstream-pr/234'
git switch 'main'
git merge --ff-only 'upstream-pr/234'
git switch 'main'
git merge 'upstream-pr/234'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
DexNom/VIctory!234
No description provided.