MAC for i2c devices
@bcantrill is already working on this.
Since Dec 3, 2021.
Assessment
This issue has not been assessed yet.
Description
Notes from an idea we discussed today.
We'd like Humility (via hiffy) to be able to mess with PMBus devices. However, we don't want it to be able to screw up the power and sequencing loops by messing with devices they're using -- it will have to talk to the tasks managing the loops instead.
We could implement this as a special case of a more general feature: mandatory access control for PMBus devices.
- Indicate in the configuration file which task(s), if any, are allowed to mess with each device.
- Compile this into a table in the driver.
- Have the i2c server check requests against the table and deny bogus ones.
This would provide a useful integrity check against malfunctioning drivers trying to mess with i2c devices they don't control. Failures in this sort of MAC would be an ideal use case for the REPLY_FAULT operation that I keep threatening to implement, but, it could be an error code for now.
Note that this would prevent these devices from being scanned by humility. This is probably good, since scans can be dangerously side-effecting (thanks, i2c!).
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 239
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 23
Contributor 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 oxidecomputer/hubris
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oxidecomputer/hubris#2593 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
oxidecomputer/hubris#2577 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
oxidecomputer/hubris#2699 ·
-
⚠️ ereport control-plane-agent root-of-trust service processor
Difficulty 5/5 Over a week Newbie friendliness 25/100
oxidecomputer/hubris#2698 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
oxidecomputer/hubris#2689 ·
All issues in oxidecomputer/hubris
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100