Skip to content

Fix RPM packaging config asset metadata - #1839

Merged
oferchen merged 1 commit into
masterfrom
fix-cargo-build-configuration-error
Nov 1, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-cargo-build-configuration-error

Conversation

@oferchen

@oferchen oferchen commented Nov 1, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • migrate the RPM metadata to the assets array expected by the preflight validator
  • mark the daemon configuration, secrets, and default environment files as config assets so packaging preserves local edits

Testing

  • cargo --locked run -p xtask -- preflight

@oferchen
oferchen merged commit 5a1a385 into master Nov 1, 2025
@oferchen
oferchen deleted the fix-cargo-build-configuration-error branch November 1, 2025 01:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
Comment on lines 142 to 143
"oc-rsync" = { path = "/usr/bin/oc-rsync", mode = "0755" }
"oc-rsyncd" = { path = "/usr/bin/oc-rsyncd", mode = "0755" }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid listing binaries in both RPM assets and targets

The new [package.metadata.rpm] assets array now installs /usr/bin/rsync, /usr/bin/rsyncd, oc-rsync, and oc-rsyncd, but the same four paths are still declared under [package.metadata.rpm.targets]. cargo rpm generates %files entries for both sections, so each binary path ends up listed twice and the build aborts with a “File listed twice” error before an RPM can be produced. Either the binaries should remain in targets or move exclusively to assets, but not both.

Useful? React with 👍 / 👎.

oferchen added a commit that referenced this pull request Apr 29, 2026
…3435)

Audit of oc-rsync's `--fake-super`, `--super`, and `--copy-as`
implementations against upstream rsync 3.4.1. Identifies 3 HIGH, 5
MEDIUM, and 2 LOW findings, all with file:line evidence and upstream
cross-references. Top issues: `load_fake_super` is exported but never
called (F1), special-file executors invoke real `mknod` syscalls under
fake-super (F2), and the daemon parses `fake super = yes` but no read
site actually demotes `am_root` (F3). Audit document only; ten
follow-up issues recommended for the actual fixes.

Closes #1839.
oferchen added a commit that referenced this pull request May 1, 2026
…3435)

Audit of oc-rsync's `--fake-super`, `--super`, and `--copy-as`
implementations against upstream rsync 3.4.1. Identifies 3 HIGH, 5
MEDIUM, and 2 LOW findings, all with file:line evidence and upstream
cross-references. Top issues: `load_fake_super` is exported but never
called (F1), special-file executors invoke real `mknod` syscalls under
fake-super (F2), and the daemon parses `fake super = yes` but no read
site actually demotes `am_root` (F3). Audit document only; ten
follow-up issues recommended for the actual fixes.

Closes #1839.
oferchen added a commit that referenced this pull request May 5, 2026
…3435)

Audit of oc-rsync's `--fake-super`, `--super`, and `--copy-as`
implementations against upstream rsync 3.4.1. Identifies 3 HIGH, 5
MEDIUM, and 2 LOW findings, all with file:line evidence and upstream
cross-references. Top issues: `load_fake_super` is exported but never
called (F1), special-file executors invoke real `mknod` syscalls under
fake-super (F2), and the daemon parses `fake super = yes` but no read
site actually demotes `am_root` (F3). Audit document only; ten
follow-up issues recommended for the actual fixes.

Closes #1839.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant