Changeset d0a6df5c47da00ffea50ad77a795b82f1b404783
- Timestamp:
- 03/09/10 09:44:55
(5 months ago)
- Author:
- Chris PeBenito <cpebenito@tresys.com>
- Committer:
- Chris PeBenito <cpebenito@tresys.com> 1268149495 -0500
- Parent:
[547d62ea9ee822de00998d95ff82f754a55e4278]
- Message:
Miscfiles patch from Dan Walsh.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r27eab81 |
rd0a6df5 |
|
| 43 | 43 | |
|---|
| 44 | 44 | /usr/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) |
|---|
| | 45 | /usr/share/X11/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) |
|---|
| 45 | 46 | /usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) |
|---|
| 46 | 47 | /usr/share/locale(/.*)? gen_context(system_u:object_r:locale_t,s0) |
|---|
| … | … | |
| 71 | 72 | /var/lib/texmf(/.*)? gen_context(system_u:object_r:tetex_data_t,s0) |
|---|
| 72 | 73 | |
|---|
| 73 | | /var/cache/fontconfig(/.*)? gen_context(system_u:object_r:fonts_t,s0) |
|---|
| | 74 | /var/cache/fontconfig(/.*)? gen_context(system_u:object_r:fonts_cache_t,s0) |
|---|
| 74 | 75 | /var/cache/fonts(/.*)? gen_context(system_u:object_r:tetex_data_t,s0) |
|---|
| 75 | 76 | /var/cache/man(/.*)? gen_context(system_u:object_r:man_t,s0) |
|---|
| 76 | 77 | |
|---|
| 77 | | /var/www/cobbler/images(/.*)? gen_context(system_u:object_r:public_content_rw_t, s0) |
|---|
| 78 | 78 | /var/lib/cobbler/webui_sessions(/.*)? gen_context(system_u:object_r:public_content_rw_t, s0) |
|---|
| 79 | 79 | |
|---|
| | 80 | /var/named/chroot/etc/pki(/.*)? gen_context(system_u:object_r:cert_t,s0) |
|---|
| | 81 | |
|---|
| 80 | 82 | /var/spool/texmf(/.*)? gen_context(system_u:object_r:tetex_data_t,s0) |
|---|
| | 83 | |
|---|
| | 84 | /var/www/cobbler/images(/.*)? gen_context(system_u:object_r:public_content_rw_t, s0) |
|---|
| 81 | 85 | |
|---|
| 82 | 86 | ifdef(`distro_debian',` |
|---|
| r611bc93 |
rd0a6df5 |
|
| 74 | 74 | interface(`miscfiles_read_fonts',` |
|---|
| 75 | 75 | gen_require(` |
|---|
| 76 | | type fonts_t; |
|---|
| | 76 | type fonts_t, fonts_cache_t; |
|---|
| 77 | 77 | ') |
|---|
| 78 | 78 | |
|---|
| … | … | |
| 84 | 84 | read_files_pattern($1, fonts_t, fonts_t) |
|---|
| 85 | 85 | read_lnk_files_pattern($1, fonts_t, fonts_t) |
|---|
| | 86 | |
|---|
| | 87 | allow $1 fonts_cache_t:dir list_dir_perms; |
|---|
| | 88 | read_files_pattern($1, fonts_cache_t, fonts_cache_t) |
|---|
| | 89 | read_lnk_files_pattern($1, fonts_cache_t, fonts_cache_t) |
|---|
| 86 | 90 | ') |
|---|
| 87 | 91 | |
|---|
| … | … | |
| 168 | 172 | manage_files_pattern($1, fonts_t, fonts_t) |
|---|
| 169 | 173 | manage_lnk_files_pattern($1, fonts_t, fonts_t) |
|---|
| | 174 | ') |
|---|
| | 175 | |
|---|
| | 176 | ######################################## |
|---|
| | 177 | ## <summary> |
|---|
| | 178 | ## Set the attributes on a fonts cache directory. |
|---|
| | 179 | ## </summary> |
|---|
| | 180 | ## <param name="domain"> |
|---|
| | 181 | ## <summary> |
|---|
| | 182 | ## Domain allowed access. |
|---|
| | 183 | ## </summary> |
|---|
| | 184 | ## </param> |
|---|
| | 185 | # |
|---|
| | 186 | interface(`miscfiles_setattr_fonts_cache_dirs',` |
|---|
| | 187 | gen_require(` |
|---|
| | 188 | type fonts_cache_t; |
|---|
| | 189 | ') |
|---|
| | 190 | |
|---|
| | 191 | allow $1 fonts_cache_t:dir setattr; |
|---|
| | 192 | ') |
|---|
| | 193 | |
|---|
| | 194 | ######################################## |
|---|
| | 195 | ## <summary> |
|---|
| | 196 | ## Do not audit attempts to set the attributes |
|---|
| | 197 | ## on a fonts cache directory. |
|---|
| | 198 | ## </summary> |
|---|
| | 199 | ## <param name="domain"> |
|---|
| | 200 | ## <summary> |
|---|
| | 201 | ## Domain allowed access. |
|---|
| | 202 | ## </summary> |
|---|
| | 203 | ## </param> |
|---|
| | 204 | # |
|---|
| | 205 | interface(`miscfiles_dontaudit_setattr_fonts_cache_dirs',` |
|---|
| | 206 | gen_require(` |
|---|
| | 207 | type fonts_cache_t; |
|---|
| | 208 | ') |
|---|
| | 209 | |
|---|
| | 210 | dontaudit $1 fonts_cache_t:dir setattr; |
|---|
| | 211 | ') |
|---|
| | 212 | |
|---|
| | 213 | ######################################## |
|---|
| | 214 | ## <summary> |
|---|
| | 215 | ## Create, read, write, and delete fonts cache. |
|---|
| | 216 | ## </summary> |
|---|
| | 217 | ## <param name="domain"> |
|---|
| | 218 | ## <summary> |
|---|
| | 219 | ## Domain allowed access. |
|---|
| | 220 | ## </summary> |
|---|
| | 221 | ## </param> |
|---|
| | 222 | ## <rolecap/> |
|---|
| | 223 | # |
|---|
| | 224 | interface(`miscfiles_manage_fonts_cache',` |
|---|
| | 225 | gen_require(` |
|---|
| | 226 | type fonts_cache_t; |
|---|
| | 227 | ') |
|---|
| | 228 | |
|---|
| | 229 | files_search_var($1) |
|---|
| | 230 | |
|---|
| | 231 | manage_dirs_pattern($1, fonts_cache_t, fonts_cache_t) |
|---|
| | 232 | manage_files_pattern($1, fonts_cache_t, fonts_cache_t) |
|---|
| | 233 | manage_lnk_files_pattern($1, fonts_cache_t, fonts_cache_t) |
|---|
| 170 | 234 | ') |
|---|
| 171 | 235 | |
|---|
| r7d2f967 |
rd0a6df5 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(miscfiles, 1.7.2) |
|---|
| | 2 | policy_module(miscfiles, 1.7.3) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 19 | 19 | type fonts_t; |
|---|
| 20 | 20 | files_type(fonts_t) |
|---|
| | 21 | |
|---|
| | 22 | type fonts_cache_t; |
|---|
| | 23 | files_type(fonts_cache_t) |
|---|
| 21 | 24 | |
|---|
| 22 | 25 | # |
|---|