diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-15 16:37:08 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-17 16:30:22 -0600 |
| commit | 45df4d0d9b577fecee798d672695fe24ff57fb1b (patch) | |
| tree | 1b99bf645035b58e0d6db08c7a83521f41f7a75b /vendor/rustix/src/ioctl/bsd.rs | |
| parent | f94f79608393d4ab127db63cc41668445ef6b243 (diff) | |
feat: migrate from Cedar to SpiceDB authorization system
This is a major architectural change that replaces the Cedar policy-based
authorization system with SpiceDB's relation-based authorization.
Key changes:
- Migrate from Rust to Go implementation
- Replace Cedar policies with SpiceDB schema and relationships
- Switch from envoy `ext_authz` with Cedar to SpiceDB permission checks
- Update build system and dependencies for Go ecosystem
- Maintain Envoy integration for external authorization
This change enables more flexible permission modeling through SpiceDB's
Google Zanzibar inspired relation-based system, supporting complex
hierarchical permissions that were difficult to express in Cedar.
Breaking change: Existing Cedar policies and Rust-based configuration
will no longer work and need to be migrated to SpiceDB schema.
Diffstat (limited to 'vendor/rustix/src/ioctl/bsd.rs')
| -rw-r--r-- | vendor/rustix/src/ioctl/bsd.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/rustix/src/ioctl/bsd.rs b/vendor/rustix/src/ioctl/bsd.rs deleted file mode 100644 index 965b31d1..00000000 --- a/vendor/rustix/src/ioctl/bsd.rs +++ /dev/null @@ -1,27 +0,0 @@ -//! `ioctl` opcode behavior for BSD platforms. - -use super::{Direction, Opcode}; - -pub(super) const fn compose_opcode( - dir: Direction, - group: Opcode, - num: Opcode, - size: Opcode, -) -> Opcode { - let dir = match dir { - Direction::None => NONE, - Direction::Read => READ, - Direction::Write => WRITE, - Direction::ReadWrite => READ | WRITE, - }; - - dir | num | (group << 8) | ((size & IOCPARAM_MASK) << 16) -} - -// `IOC_VOID` -pub const NONE: Opcode = 0x2000_0000; -// `IOC_OUT` (“out” is from the perspective of the kernel) -pub const READ: Opcode = 0x4000_0000; -// `IOC_IN` (“in” is from the perspective of the kernel) -pub const WRITE: Opcode = 0x8000_0000; -pub const IOCPARAM_MASK: Opcode = 0x1FFF; |
