## Myapp example policy
##
##
## More descriptive text about myapp. The desc
## tag can also use p, ul, and ol
## html tags for formatting.
##
##
## This policy supports the following myapp features:
##
## - Feature A
## - Feature B
## - Feature C
##
##
##
#
########################################
##
## Getattr generic the USB devices.
##
##
##
## Domain allowed access.
##
##
#
interface(`dev_getattr_generic_usb_dev',`
gen_require(`
type usb_device_t;
')
getattr_chr_files_pattern($1, device_t, usb_device_t)
')
########################################
##
## Setattr generic the USB devices.
##
##
##
## Domain allowed access.
##
##
#
interface(`dev_setattr_generic_usb_dev',`
gen_require(`
type usb_device_t;
')
setattr_chr_files_pattern($1, device_t, usb_device_t)
')
########################################
##
## Read generic the USB devices.
##
##
##
## Domain allowed access.
##
##
#
interface(`dev_read_generic_usb_dev',`
gen_require(`
type usb_device_t;
')
read_chr_files_pattern($1, device_t, usb_device_t)
')
########################################
##
## Read and write generic the USB devices.
##
##
##
## Domain allowed access.
##
##
#
interface(`dev_rw_generic_usb_dev',`
gen_require(`
type device_t;
type usb_device_t;
')
rw_chr_files_pattern($1, device_t, usb_device_t)
')