Skip to content

MapPerms: Consistency between map and iomap#577

Open
cazb2 wants to merge 1 commit into
seL4:mainfrom
au-ts:callumb/improve_permission_repr
Open

MapPerms: Consistency between map and iomap#577
cazb2 wants to merge 1 commit into
seL4:mainfrom
au-ts:callumb/improve_permission_repr

Conversation

@cazb2

@cazb2 cazb2 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This commit unifies the way VM rights are encoded in the sdf. Previously normal map perms were represented as a raw u8 enum while the iomap perms were represented as a proper type.

This uses a base enum for the vm rights and then uses a context specific struct around the base rights depending on if the perms are for a iomap or map entry.

This preserves existing correct behaviour, (I believe seL4 would reject the WriteExecute case where the tool would previously accept this for normal frames leading to a runtime error.)

This commit unifies the way VM rights are encoded in the sdf.
Previously normal map perms were represented as a raw u8 while the iomap
perms were represented as a proper type.

Preserves existing behaviour.

Signed-off-by: Callum <c.berry@student.unsw.edu.au>
@cazb2

cazb2 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant