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 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 b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
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 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 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 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 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 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 b4cd15
allow $1 null_device_t:chr_file { getattr 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 b4cd15
class chr_file { getattr 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
')