Skip to content

Commit

Permalink
Label /dev/vas with vas_device_t
Browse files Browse the repository at this point in the history
Power9 processor introduced Virtual Accelerator Switchboard (VAS) which
allows both userspace and kernel communicate to co-processor (hardware
accelerator) referred to as the Nest Accelerator (NX). The NX unit
comprises of one or more hardware engines or co-processor types such as
842 compression, GZIP compression and encryption. On power9, userspace
applications will have access to only GZIP Compression engine which
supports ZLIB and GZIP compression algorithms in the hardware.
https://docs.kernel.org/arch/powerpc/vas-api.html
  • Loading branch information
zpytela committed Dec 1, 2023
1 parent 048e9da commit f9d5e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/kernel/devices.fc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
ifdef(`distro_suse', `
/dev/usbscanner -c gen_context(system_u:object_r:scanner_device_t,s0)
')
/dev/vas -c gen_context(system_u:object_r:vas_device_t,s0)
/dev/vmci -c gen_context(system_u:object_r:vmci_device_t,s0)
/dev/vsock -c gen_context(system_u:object_r:vsock_device_t,s0)
/dev/vhci -c gen_context(system_u:object_r:vhost_device_t,s0)
Expand Down
3 changes: 3 additions & 0 deletions policy/modules/kernel/devices.te
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ dev_node(userio_device_t)
type uhid_device_t;
dev_node(uhid_device_t)

type vas_device_t;
dev_node(vas_device_t)

type vfio_device_t;
dev_node(vfio_device_t)

Expand Down

0 comments on commit f9d5e92

Please sign in to comment.