Chris PeBenito 9c6feb
#
Chris PeBenito 9c6feb
# /emul
Chris PeBenito 9c6feb
#
Chris PeBenito 9c6feb
ifdef(`distro_redhat',`
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/lib(/.*)?		gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/lib/.*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/java/.*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/java/.*\.jar	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/java/.*\.jsa	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/usr(/.*)?/lib(/.*)?/ld-[^/]*\.so(\.[^/]*)* gen_context(system_u:object_r:ld_so_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/lib(/.*)?					gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/lib/.*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/emul/ia32-linux/lib(/.*)?/ld-[^/]*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:ld_so_t,s0)
Chris PeBenito 9c6feb
')
Chris PeBenito f8ec0a
Chris PeBenito f8ec0a
#
Chris PeBenito f8ec0a
# /etc
Chris PeBenito f8ec0a
#
Chris PeBenito e02c61
/etc/ld\.so\.cache			--	gen_context(system_u:object_r:ld_so_cache_t,s0)
Chris PeBenito e02c61
/etc/ld\.so\.preload			--	gen_context(system_u:object_r:ld_so_cache_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e08118
/etc/ppp/plugins/rp-pppoe\.so 		--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito e08118
Chris PeBenito f8ec0a
#
Chris PeBenito f8ec0a
# /lib(64)?
Chris PeBenito f8ec0a
#
Chris PeBenito e02c61
/lib(64)?(/.*)?					gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito e02c61
/lib(64)?/.*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito e02c61
/lib(64)?(/.*)?/ld-[^/]*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:ld_so_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito f8ec0a
#
Chris PeBenito f8ec0a
# /opt
Chris PeBenito f8ec0a
#
Chris PeBenito f1baed
/opt(/.*)?/lib(64)?(/.*)?			gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito f1baed
/opt(/.*)?/lib(64)?/.*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito f8ec0a
#
Chris PeBenito 48e0db
# /sbin
Chris PeBenito 48e0db
#
Chris PeBenito e02c61
/sbin/ldconfig				--	gen_context(system_u:object_r:ldconfig_exec_t,s0)
Chris PeBenito 48e0db
Chris PeBenito 48e0db
#
Chris PeBenito f8ec0a
# /usr
Chris PeBenito f8ec0a
#
Chris PeBenito e02c61
/usr(/.*)?/HelixPlayer/.*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr(/.*)?/java/.*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito e02c61
/usr(/.*)?/java/.*\.jar			--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito e02c61
/usr(/.*)?/java/.*\.jsa			--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr(/.*)?/lib(64)?(/.*)?			gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito e02c61
/usr(/.*)?/lib(64)?/.*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr(/.*)?/lib(64)?(/.*)?/ld-[^/]*\.so(\.[^/]*)* gen_context(system_u:object_r:ld_so_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr(/.*)?/nvidia/.*\.so(\..*)?		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr/lib/pgsql/test/regress/.*\.so 	--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito a1fcff
Chris PeBenito e02c61
/usr/lib/win32/.*			--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr/lib(64)?/libGL(core)?/.so(\.[^/]*)* --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito e02c61
/usr/lib(64)?(/.*)?/libnvidia.*\.so(\.[^/]*)* -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito a1fcff
Chris PeBenito e02c61
/usr/(local/)?lib/wine/.*\.so  		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito e02c61
/usr/(local/)?lib/libfame-.*\.so.*	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito e02c61
/usr/local/.*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito cff75c
Chris PeBenito e02c61
/usr/X11R6/lib/libGL\.so.* 		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito e02c61
/usr/X11R6/lib/libXvMCNVIDIA\.so.* 	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/usr/x11R6/lib/modules/extensions/libglx\.so(\.[^/]*)* -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
ifdef(`distro_redhat',`
Chris PeBenito 9c6feb
/usr/lib/.*/program/.*\.so.*			gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/usr/share/rhn/rhn_applet/eggtrayiconmodule\.so -- gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# The following are libraries with text relocations in need of execmod permissions
Chris PeBenito 9c6feb
# Some of them should be fixed and removed from this list
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Fedora Core packages: gstreamer-plugins, compat-libstdc++, Glide3, libdv
Chris PeBenito 9c6feb
# 	HelixPlayer, SDL, xorg-x11, xorg-x11-libs, Hermes, valgrind, openoffice.org-libs, httpd - php
Chris PeBenito 9c6feb
/usr/lib/gstreamer-.*/libgstffmpeg\.so.* --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/gstreamer-.*/libgsthermescolorspace\.so -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/gstreamer-.*/libgstmms\.so 	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libstdc\+\+\.so\.2\.7\.2\.8 	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libg\+\+\.so\.2\.7\.2\.8	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libglide3\.so.* 		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libdv\.so.* 			--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/helix/plugins/oggfformat\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/helix/plugins/theorarend\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/helix/plugins/vorbisrend\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/helix/codecs/colorcvt\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/helix/codecs/cvt1\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libSDL-.*\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/X11R6/lib/modules/dri/.*\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/X11R6/lib/libOSMesa\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/X11R6/lib/libfglrx_gamma\.so.* 	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libHermes\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/valgrind/hp2ps			--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/valgrind/stage2		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/valgrind/vg.*\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/libxpcom_core.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/program/libicudata\.so.*	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/program/libsts645li\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/program/libvclplug_gen645li\.so --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/program/libwrp645li\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/program/libswd680li\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib(64)?/.*/program/librecentfile\.so --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib(64)?/.*/program/libsvx680li\.so --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib(64)?/.*/program/libcomphelp4gcc3\.so -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib(64)?/.*/program/libsoffice\.so  --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Fedora Extras packages: ladspa, imlib2, ocaml
Chris PeBenito 9c6feb
/usr/lib/ladspa/analogue_osc_1416\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/bandpass_a_iir_1893\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/bandpass_iir_1892\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/butterworth_1902\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/fm_osc_1415\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/gsm_1215\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/gverb_1216\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/hermes_filter_1200\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/highpass_iir_1890\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/lowpass_iir_1891\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/notch_iir_1894\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/pitch_scale_1193\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/pitch_scale_1194\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/sc1_1425\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/sc2_1426\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/sc3_1427\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/sc4_1882\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ladspa/se4_1883\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libImlib2\.so.* 		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/ocaml/stublibs/dllnums\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/httpd/modules/libphp5\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/php/modules/.*\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Livna.org packages: xmms-mp3, ffmpeg, xvidcore, xine-lib, gsm, lame
Chris PeBenito 9c6feb
/usr/lib/xmms/Input/libmpg123\.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libpostproc\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libavformat-.*\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libavcodec-.*\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libxvidcore\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/xine/plugins/.*\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libgsm\.so.*			--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libmp3lame\.so.*		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Flash plugin, Macromedia
Chris PeBenito 9c6feb
HOME_DIR/.*/plugins/libflashplayer\.so.* --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/.*/plugins/libflashplayer\.so.* --	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Jai, Sun Microsystems (Jpackage SPRM)
Chris PeBenito 9c6feb
/usr/lib/libmlib_jai\.so		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libdivxdecore.so.0		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr/lib/libdivxencore.so.0		--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
# Java, Sun Microsystems (JPackage SRPM)
Chris PeBenito 9c6feb
/usr/.*/jre/lib/i386/libdeploy.so	--	gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
/usr(/.*)?/Reader/intellinux/plug_ins/.*\.api -- gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
/usr(/.*)?/Reader/intellinux/plug_ins/AcroForm\.api -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr(/.*)?/Reader/intellinux/plug_ins/EScript\.api -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
/usr(/.*)?/Reader/intellinux/SPPlugins/ADMPlugin\.apl -- gen_context(system_u:object_r:texrel_shlib_t,s0)
Chris PeBenito 9c6feb
') dnl end distro_redhat
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
ifdef(`distro_suse',`
Chris PeBenito 9c6feb
/usr/lib/samba/classic/[^/]*\.so(\.[^/]*)* --	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
')
Chris PeBenito 9c6feb
Chris PeBenito f8ec0a
#
Chris PeBenito f8ec0a
# /var
Chris PeBenito f8ec0a
#
Chris PeBenito e02c61
/var/ftp/lib(64)?(/.*)?				gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito e02c61
/var/ftp/lib(64)?/ld[^/]*\.so(\.[^/]*)*	--	gen_context(system_u:object_r:ld_so_t,s0)
Chris PeBenito e02c61
/var/ftp/lib(64)?/lib[^/]*\.so(\.[^/]*)* --	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito f8ec0a
Chris PeBenito e02c61
/var/mailman/pythonlib(/.*)?/.*\.so(\..*)? --	gen_context(system_u:object_r:shlib_t,s0)
Chris PeBenito 9c6feb
Chris PeBenito 9c6feb
ifdef(`distro_suse',`
Chris PeBenito 9c6feb
/var/lib/samba/bin/.*\.so(\.[^/]*)*	-l	gen_context(system_u:object_r:lib_t,s0)
Chris PeBenito 9c6feb
')