You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a utility to OpenROAD that lets pass authors pledge away certain operations during their code execution. If a pass performs an operation that it pledged not to odb would throw an error. Which would help prevent bugs like #6289
Suggested Solution
These pledges are similar in nature to the FreeBSD pledge(2) syscall that lets process restrict the syscalls they can make as a security feature.
Ideally we would have some built-in mechanism to odb to pledge away write/delete operations on certain objects. Potentially, using RAII to undo them automatically.
Description
Add a utility to OpenROAD that lets pass authors pledge away certain operations during their code execution. If a pass performs an operation that it pledged not to odb would throw an error. Which would help prevent bugs like #6289
Suggested Solution
These pledges are similar in nature to the FreeBSD pledge(2) syscall that lets process restrict the syscalls they can make as a security feature.
Ideally we would have some built-in mechanism to odb to pledge away write/delete operations on certain objects. Potentially, using RAII to undo them automatically.
Additional Context
https://man.openbsd.org/pledge.2
The text was updated successfully, but these errors were encountered: