Two rustdoc comments misdescribe Seatbelt's UI enforcement and the FFI's one-shot path
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- documentation
Research direction
Start with the ui_specified rustdoc in src/mxc-sdk/src/core/mxc_common/models.rs, then check write_ui_rules in src/mxc-sdk/src/backends/seatbelt/common/profile_builder.rs to confirm which UI fields Seatbelt enforces. Next, read the module comment in src/mxc-sdk/src/core/mxc_engine/run.rs and trace __ffi::run_json to execute_one_shot_json to confirm it does not call run. Done when both comments match the code and no other text in those files claims otherwise.
Written by the indexing model from the issue text.
Description
Brief description of your issue
Two rustdoc comments describe behavior the code does not have:
ContainerPolicy::ui_specifiedinsrc/mxc-sdk/src/core/mxc_common/models.rslists Seatbelt among the backends that "still accept and ignore"policy.ui. Seatbelt enforces it:write_ui_rulesinsrc/mxc-sdk/src/backends/seatbelt/common/profile_builder.rsdenies WindowServer and LaunchServices whenui.disableis set, the pasteboard whenui.clipboardisnone, and HID access whenui.injectionis false.- The module comment of
src/mxc-sdk/src/core/mxc_engine/run.rsnames the FFI layer among the callers ofrun. Onlylxc-execandmxc-exec-maccall it; the FFI's one-shot entry,mxc_sdk::__ffi::run_json, goes throughmxc_engine::execute_one_shot_json, which does not callrun.
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 171
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 111
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/mxc
-
Backend-IsolationSession Issue-Docs OS-Windows
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Backend-IsolationSession Issue-Bug Needs-Triage OS-Windows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Area-Node-SDK Issue-Task
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Area-Build Issue-Bug OS-Windows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Embedded NUL in containerId can result in duplicate identitiesPossibly taken @safmswork claimed this 13 days ago. OpenBackend-ProcessContainer Issue-Bug OS-Linux OS-Windows
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/mxc#1621 · 1 comment ·
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
riverqueue/river#1576 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
stadelmanma/fitparse-rs#64 ·