Skip to content

Commit

Permalink
Add sepolicy for npu device
Browse files Browse the repository at this point in the history
Tests done:
- Android build
- Boot and verified npu device /dev/accel0 enumeration.

Tracked-On: OAM-126050
Signed-off-by: JeevakaPrabu <[email protected]>
  • Loading branch information
JeevakaPrabu committed Nov 8, 2024
1 parent 09662be commit e50db82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions npu/device.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type npu_device, dev_type;
2 changes: 2 additions & 0 deletions npu/file_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# devices
/dev/accel[0-9]* u:object_r:npu_device:s0

0 comments on commit e50db82

Please sign in to comment.