Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_make_device_node(type,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_make_device_node',`
Chris PeBenito b4cd15
requires_block_template(devices_make_device_node_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 device_node;
Chris PeBenito b4cd15
filesystem_associate($1,optional)
Chris PeBenito 33bc0d
filesystem_tmpfs_associate($1,optional)
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_make_device_node_depend',`
Chris PeBenito b4cd15
attribute device_node;
Chris PeBenito b4cd15
filesystem_associate_depend
Chris PeBenito 33bc0d
filesystem_tmpfs_associate_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito ee5772
# devices_manage_all_devices_labels(type,[`optional'])
Chris PeBenito ee5772
#
Chris PeBenito ee5772
define(`devices_manage_all_devices_labels',`
Chris PeBenito ee5772
requires_block_template(devices_manage_all_devices_labels_depend,$2)
Chris PeBenito ee5772
allow $1 device_node:dir { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 device_node:file { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 device_node:lnk_file { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 device_node:fifo_file { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 device_node:sock_file { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 { device_t device_node }:blk_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 { device_t device_node }:chr_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
define(`devices_manage_all_devices_labels_depend',`
Chris PeBenito ee5772
attribute device_node;
Chris PeBenito ee5772
type device_t;
Chris PeBenito ee5772
class dir { getattr relabelfrom };
Chris PeBenito ee5772
class file { getattr relabelfrom };
Chris PeBenito ee5772
class lnk_file { getattr relabelfrom };
Chris PeBenito ee5772
class fifo_file { getattr relabelfrom };
Chris PeBenito ee5772
class sock_file { getattr relabelfrom };
Chris PeBenito ee5772
class blk_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
class chr_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
########################################
Chris PeBenito ee5772
#
Chris PeBenito b4cd15
# devices_list_device_nodes(type,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_list_device_nodes',`
Chris PeBenito b4cd15
requires_block_template(devices_list_device_nodes_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 device_t:lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_list_device_nodes_depend',`
Chris PeBenito b4cd15
type device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_ignore_list_device_nodes(type,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_ignore_list_device_nodes',`
Chris PeBenito b4cd15
requires_block_template(devices_ignore_list_device_nodes_depend,$2)
Chris PeBenito b4cd15
dontaudit $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_ignore_list_device_nodes_depend',`
Chris PeBenito b4cd15
type device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_ignore_modify_generic_devices(type,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_ignore_modify_generic_devices',`
Chris PeBenito b4cd15
requires_block_template(devices_ignore_modify_generic_devices_depend,$2)
Chris PeBenito b4cd15
dontaudit $1 device_t:{ chr_file blk_file } { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_ignore_modify_generic_devices_depend',`
Chris PeBenito b4cd15
type device_t;
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
class blk_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_create_dev_entry(domain,file,objectclass(es),[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_create_dev_entry',`
Chris PeBenito b4cd15
requires_block_template(devices_set_dev_entry_depend,$4)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
type_transition $1 device_t:$3 $2;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_set_dev_entry_depend',`
Chris PeBenito b4cd15
type device_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
# devices_get_all_block_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`devices_get_all_block_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(devices_get_all_block_device_attributes_depend,$2)
Chris PeBenito 8a0da1
allow $1 device_node:blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`devices_get_all_block_device_attributes_depend',`
Chris PeBenito 8a0da1
attribute device_node;
Chris PeBenito 8a0da1
class blk_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# devices_get_all_character_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`devices_get_all_character_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(devices_get_all_character_device_attributes_depend,$2)
Chris PeBenito 8a0da1
allow $1 device_node:chr_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`devices_get_all_character_device_attributes_depend',`
Chris PeBenito 8a0da1
attribute device_node;
Chris PeBenito 8a0da1
class chr_file getattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# devices_set_all_block_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`devices_set_all_block_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(devices_set_all_block_device_attributes_depend,$2)
Chris PeBenito 8a0da1
allow $1 device_node:blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`devices_set_all_block_device_attributes_depend',`
Chris PeBenito 8a0da1
attribute device_node;
Chris PeBenito 8a0da1
class blk_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
# devices_set_all_character_device_attributes(domain,[`optional'])
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`devices_set_all_character_device_attributes',`
Chris PeBenito 8a0da1
requires_block_template(devices_set_all_character_device_attributes_depend,$2)
Chris PeBenito 8a0da1
allow $1 device_node:chr_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`devices_set_all_character_device_attributes_depend',`
Chris PeBenito 8a0da1
attribute device_node;
Chris PeBenito 8a0da1
class chr_file setattr;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito b4cd15
# devices_raw_read_memory(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_raw_read_memory',`
Chris PeBenito b4cd15
requires_block_template(devices_raw_read_memory_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 memory_raw_read;
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 memory_device_t:chr_file { getattr read ioctl };
Chris PeBenito f0872d
allow $1 self:capability sys_rawio;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_raw_read_memory_depend',`
Chris PeBenito b4cd15
type device_t, memory_device_t;
Chris PeBenito b4cd15
attribute memory_raw_read;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito f0872d
class capability sys_rawio;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_raw_write_memory(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_raw_write_memory',`
Chris PeBenito b4cd15
requires_block_template(devices_raw_write_memory_depend,$2)
Chris PeBenito b4cd15
typeattribute $1 memory_raw_write
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 memory_device_t:chr_file write;
Chris PeBenito f0872d
allow $1 self:capability sys_rawio;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_raw_write_memory_depend',`
Chris PeBenito b4cd15
type device_t, memory_device_t;
Chris PeBenito b4cd15
attribute memory_raw_write;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file write;
Chris PeBenito f0872d
class capability sys_rawio;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_random_data(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_random_data',`
Chris PeBenito b4cd15
requires_block_template(devices_get_random_data_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 random_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_random_data_depend',`
Chris PeBenito b4cd15
type device_t, random_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_pseudorandom_data(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_pseudorandom_data',`
Chris PeBenito b4cd15
requires_block_template(devices_get_pseudorandom_data_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 urandom_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_pseudorandom_data_depend',`
Chris PeBenito b4cd15
type device_t, urandom_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_add_entropy(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_add_entropy',`
Chris PeBenito b4cd15
requires_block_template(devices_add_entropy_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 random_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_add_entropy_depend',`
Chris PeBenito b4cd15
type device_t, random_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_set_pseudorandom_seed(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_set_pseudorandom_seed',`
Chris PeBenito b4cd15
requires_block_template(devices_set_pseudorandom_seed_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 urandom_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_set_pseudorandom_seed_depend',`
Chris PeBenito b4cd15
type device_t, urandom_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_discard_data_stream(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_discard_data_stream',`
Chris PeBenito b4cd15
requires_block_template(devices_discard_data_stream_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito 5eafc3
allow $1 null_device_t:chr_file { getattr append write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_discard_data_stream_depend',`
Chris PeBenito b4cd15
type device_t, null_device_t;
Chris PeBenito b4cd15
class device_t:dir { getattr read search };
Chris PeBenito 5eafc3
class chr_file { getattr append write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_zeros(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_zeros',`
Chris PeBenito b4cd15
requires_block_template(devices_get_zeros_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 zero_device_t:chr_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_zeros_depend',`
Chris PeBenito b4cd15
type device_t, zero_device_t;
Chris PeBenito b4cd15
class device_t:dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_read_realtime_clock(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_read_realtime_clock',`
Chris PeBenito b4cd15
requires_block_template(devices_read_realtime_clock_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 clock_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_read_realtime_clock_depend',`
Chris PeBenito b4cd15
type device_t, clock_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_record_sound_input(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_record_sound_input',`
Chris PeBenito b4cd15
requires_block_template(devices_record_sound_input_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 sound_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_record_sound_input_depend',`
Chris PeBenito b4cd15
type device_t, sound_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_play_sound(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_play_sound',`
Chris PeBenito b4cd15
requires_block_template(devices_play_sound_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 sound_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_play_sound_depend',`
Chris PeBenito b4cd15
type device_t, sound_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_read_sound_mixer_levels(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_read_sound_mixer_levels',`
Chris PeBenito b4cd15
requires_block_template(devices_read_sound_mixer_levels_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 sound_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_read_sound_mixer_levels_depend',`
Chris PeBenito b4cd15
type device_t, sound_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_write_sound_mixer_levels(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_write_sound_mixer_levels',`
Chris PeBenito b4cd15
requires_block_template(devices_write_sound_mixer_levels_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 sound_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_write_sound_mixer_levels_depend',`
Chris PeBenito b4cd15
type device_t, sound_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_direct_agp_access(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_direct_agp_access',`
Chris PeBenito b4cd15
requires_block_template(devices_direct_agp_access_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 agp_device_t:chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_direct_agp_access_depend',`
Chris PeBenito b4cd15
type device_t, agp_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_use_direct_rendering_interface(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_use_direct_rendering_interface',`
Chris PeBenito b4cd15
requires_block_template(devices_use_direct_rendering_interface_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 dri_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_use_direct_rendering_interface_depend',`
Chris PeBenito b4cd15
type device_t, dri_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_read_mtrr(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_read_mtrr',`
Chris PeBenito b4cd15
requires_block_template(devices_read_mtrr_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 mtrr_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_read_mtrr_depend',`
Chris PeBenito b4cd15
type device_t, mtrr_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_write_mtrr(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_write_mtrr',`
Chris PeBenito b4cd15
requires_block_template(devices_write_mtrr_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 mtrr_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_write_mtrr_depend',`
Chris PeBenito b4cd15
type device_t, mtrr_device_t;
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_read_framebuffer(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_read_framebuffer',`
Chris PeBenito b4cd15
requires_block_template(devices_read_framebuffer_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 framebuf_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_read_framebuffer_depend',`
Chris PeBenito b4cd15
type framebuf_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_write_framebuffer(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_write_framebuffer',`
Chris PeBenito b4cd15
requires_block_template(devices_write_framebuffer_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 framebuf_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_write_framebuffer_depend',`
Chris PeBenito b4cd15
type device_t, framebuf_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_read_misc(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_read_misc',`
Chris PeBenito b4cd15
requires_block_template(devices_read_misc_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 misc_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_read_misc_depend',`
Chris PeBenito b4cd15
type device_t, misc_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_write_misc(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_write_misc',`
Chris PeBenito b4cd15
requires_block_template(devices_write_misc_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 misc_device_t:chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_write_misc_depend',`
Chris PeBenito b4cd15
type device_t, misc_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_mouse_input(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_mouse_input',`
Chris PeBenito b4cd15
requires_block_template(devices_get_mouse_input_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 mouse_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_mouse_input_depend',`
Chris PeBenito b4cd15
type device_t, mouse_device_t;
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_input_event(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_input_event',`
Chris PeBenito b4cd15
requires_block_template(devices_get_input_event_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 event_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_input_event_depend',`
Chris PeBenito b4cd15
type device_t, event_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_get_cpuid(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_get_cpuid',`
Chris PeBenito b4cd15
requires_block_template(devices_get_cpuid_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 cpu_device_t:chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_get_cpuid_depend',`
Chris PeBenito b4cd15
type device_t, cpu_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_load_cpu_microcode(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_load_cpu_microcode',`
Chris PeBenito b4cd15
requires_block_template(devices_load_cpu_microcode_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 cpu_device_t:chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_load_cpu_microcode_depend',`
Chris PeBenito b4cd15
type device_t, cpu_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_use_scanner(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_use_scanner',`
Chris PeBenito b4cd15
requires_block_template(devices_use_scanner_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 scanner_device_t:chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_use_scanner_depend',`
Chris PeBenito b4cd15
type device_t, scanner_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# devices_control_system_powermanagement(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`devices_control_system_powermanagement',`
Chris PeBenito b4cd15
requires_block_template(devices_control_system_powermanagement_depend,$2)
Chris PeBenito b4cd15
allow $1 device_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 power_device_t:chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`devices_control_system_powermanagement_depend',`
Chris PeBenito b4cd15
type device_t, power_device_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class chr_file { getattr read write ioctl };
Chris PeBenito b4cd15
')