Combine and Check Permission Flags
Combine and Check Permission Flags
Try Select Step to reveal the maintenance policy and compare its required read and write bits with the protected grant.
Combine and Check Permission Flags
Permission flagsDevice · Protected grant
Independently issued for this device.
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Granted | 1 · Set | 0 · Clear |
- Protection
- Verified
- Object binding
- Correct device
- Grant validity
- Valid
Device · Protected grant
Independently issued for this device.
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Granted | 1 · Set | 0 · Clear |
- Protection
- Verified
- Object binding
- Correct device
- Grant validity
- Valid
Illustrative maintenance policy
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Read mask | 1 · Set | 0 · Clear |
| Write mask | 0 · Clear | 1 · Set |
| Required · OR | 1 · Set | 1 · Set |
OR takes the union of the policy-selected masks.
Device · Protected grant
Independently issued for this device.
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Granted | 1 · Set | 0 · Clear |
- Protection
- Verified
- Object binding
- Correct device
- Grant validity
- Valid
Apply AND
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Required | 1 · Set | 1 · Set |
| Granted AND Required | 1 · Set | 0 · Clear |
Device · Protected grant
Independently issued for this device.
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Granted | 1 · Set | 0 · Clear |
- Protection
- Verified
- Object binding
- Correct device
- Grant validity
- Valid
Denied — Write firmware missing
(granted & required) == required
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Required | 1 · Set | 1 · Set |
| Granted AND Required | 1 · Set Partial match |
0 · Clear Mismatch · required flag missing |
An any-bit check would accept the partial Read sensor data match.
Device · Protected grant
Independently issued for this device.
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Granted | 1 · Set | 1 · Set |
- Protection
- Verified
- Object binding
- Correct device
- Grant validity
- Valid
Permission check passed for this verified grant
(granted & required) == required
| Bit mask | Read sensor data | Write firmware |
|---|---|---|
| Required | 1 · Set | 1 · Set |
| Granted AND Required | 1 · Set Matches |
1 · Set Matches |
Read the device’s grant
The protected grant binds the action flags to this device.
Observe The AND row shows 1 for reading sensor data and 0 for writing firmware. With the separately issued grant, both result bits show 1 and the permission check passes.
Explain AND keeps the bits that are set in both rows. The first grant is denied because its firmware write bit is 0, leaving the intersection short of the required mask.
Technical boundaries. The maintenance policy is illustrative and represents read and firmware write as individual bits. The check starts with protection verified, object binding confirmed and grant validity established for each grant. The replay begins after issuance and verification.