fix up usb.ids per distro

This commit is contained in:
Chris PeBenito 2006-09-05 14:31:27 +00:00
parent 686f11c22c
commit 91dabf4d78
3 changed files with 17 additions and 8 deletions

View File

@ -1,5 +1,5 @@
policy_module(usbmodules,1.0.0)
policy_module(usbmodules,1.0.1)
########################################
#
@ -16,7 +16,6 @@ role system_r types usbmodules_t;
# Local policy
#
kernel_list_proc(usbmodules_t)
files_list_kernel_modules(usbmodules_t)
@ -37,6 +36,8 @@ init_use_fds(usbmodules_t)
libs_use_ld_so(usbmodules_t)
libs_use_shared_libs(usbmodules_t)
miscfiles_read_hwdata(usbmodules_t)
modutils_read_module_deps(usbmodules_t)
optional_policy(`

View File

@ -38,7 +38,6 @@ ifdef(`distro_gentoo',`
/usr/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)
/usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)
/usr/share/hwdata(/.*)? gen_context(system_u:object_r:hwdata_t,s0)
/usr/share/locale(/.*)? gen_context(system_u:object_r:locale_t,s0)
/usr/share/man(/.*)? gen_context(system_u:object_r:man_t,s0)
/usr/share/zoneinfo(/.*)? gen_context(system_u:object_r:locale_t,s0)
@ -50,18 +49,27 @@ ifdef(`distro_gentoo',`
/usr/X11R6/man(/.*)? gen_context(system_u:object_r:man_t,s0)
ifdef(`distro_gentoo',`
/usr/share/misc/(pci|usb)\.ids -- gen_context(system_u:object_r:hwdata_t,s0)
')
ifdef(`distro_redhat',`
/usr/share/hwdata(/.*)? gen_context(system_u:object_r:hwdata_t,s0)
')
#
# /var
#
/var/ftp(/.*)? gen_context(system_u:object_r:public_content_t,s0)
ifdef(`distro_debian', `
/var/lib/msttcorefonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)
')
/var/lib/texmf(/.*)? gen_context(system_u:object_r:tetex_data_t,s0)
/var/cache/fonts(/.*)? gen_context(system_u:object_r:tetex_data_t,s0)
/var/cache/man(/.*)? gen_context(system_u:object_r:man_t,s0)
/var/spool/texmf(/.*)? gen_context(system_u:object_r:tetex_data_t,s0)
ifdef(`distro_debian',`
/var/lib/msttcorefonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)
/var/lib/usbutils(/.*)? gen_context(system_u:object_r:hwdata_t,s0)
')

View File

@ -1,5 +1,5 @@
policy_module(miscfiles,1.0.3)
policy_module(miscfiles,1.0.4)
########################################
#