Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Requires special file interface
# numa_stat =
# Requires eventfd handling - https://www.kernel.org/doc/Documentation/cgroups/memory.txt
# pressure_level =
class DevicesController(Controller):
"""
devices.allow
devices.deny
devices.list
"""
allow = TypedFile("devices.allow", DeviceAccess, writeonly=True)
deny = TypedFile("devices.deny", DeviceAccess, writeonly=True)
list = TypedFile("devices.list", DeviceAccess, readonly=True, many=True)
class BlkIOController(Controller):
"""
blkio.io_merged
blkio.io_merged_recursive
blkio.io_queued
blkio.io_queued_recursive
blkio.io_service_bytes
blkio.io_service_bytes_recursive
blkio.io_serviced
blkio.io_serviced_recursive
blkio.io_service_time
blkio.io_service_time_recursive
blkio.io_wait_time
# Requires special file interface
# numa_stat =
# Requires eventfd handling - https://www.kernel.org/doc/Documentation/cgroups/memory.txt
# pressure_level =
class DevicesController(Controller):
"""
devices.allow
devices.deny
devices.list
"""
allow = TypedFile("devices.allow", DeviceAccess, writeonly=True)
deny = TypedFile("devices.deny", DeviceAccess, writeonly=True)
list = TypedFile("devices.list", DeviceAccess, readonly=True, many=True)
class BlkIOController(Controller):
"""
blkio.io_merged
blkio.io_merged_recursive
blkio.io_queued
blkio.io_queued_recursive
blkio.io_service_bytes
blkio.io_service_bytes_recursive
blkio.io_serviced
blkio.io_serviced_recursive
blkio.io_service_time
blkio.io_service_time_recursive