diff --git a/policy-F16.patch b/policy-F16.patch index 9da3d36..213601a 100644 --- a/policy-F16.patch +++ b/policy-F16.patch @@ -10871,7 +10871,7 @@ index be9246b..e3de8fa 100644 tunable_policy(`wine_mmap_zero_ignore',` dontaudit wine_t self:memprotect mmap_zero; diff --git a/policy/modules/apps/wireshark.te b/policy/modules/apps/wireshark.te -index 8bfe97d..9e4ad2c 100644 +index 8bfe97d..95a3d06 100644 --- a/policy/modules/apps/wireshark.te +++ b/policy/modules/apps/wireshark.te @@ -15,6 +15,7 @@ ubac_constrained(wireshark_t) @@ -10882,6 +10882,15 @@ index 8bfe97d..9e4ad2c 100644 userdom_user_home_content(wireshark_home_t) type wireshark_tmp_t; +@@ -34,7 +35,7 @@ ubac_constrained(wireshark_tmpfs_t) + # Local Policy + # + +-allow wireshark_t self:capability { net_admin net_raw setgid }; ++allow wireshark_t self:capability { net_admin net_raw }; + allow wireshark_t self:process { signal getsched }; + allow wireshark_t self:fifo_file { getattr read write }; + allow wireshark_t self:shm destroy; @@ -85,6 +86,8 @@ fs_search_auto_mountpoints(wireshark_t) libs_read_lib_files(wireshark_t) @@ -10968,7 +10977,7 @@ index 223ad43..d95e720 100644 rsync_exec(yam_t) ') diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc -index 3fae11a..f8f940f 100644 +index 3fae11a..d653b7f 100644 --- a/policy/modules/kernel/corecommands.fc +++ b/policy/modules/kernel/corecommands.fc @@ -97,8 +97,6 @@ ifdef(`distro_redhat',` @@ -11119,7 +11128,18 @@ index 3fae11a..f8f940f 100644 /usr/local/linuxprinter/filters(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/sbin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) -@@ -286,6 +290,7 @@ ifdef(`distro_gentoo',` +@@ -267,6 +271,10 @@ ifdef(`distro_gentoo',` + /usr/share/cluster/.*\.sh gen_context(system_u:object_r:bin_t,s0) + /usr/share/cluster/ocf-shellfuncs -- gen_context(system_u:object_r:bin_t,s0) + /usr/share/cluster/svclib_nfslock -- gen_context(system_u:object_r:bin_t,s0) ++/usr/share/cluster/SAPDatabase -- gen_context(system_u:object_r:bin_t,s0) ++/usr/share/cluster/SAPInstance -- gen_context(system_u:object_r:bin_t,s0) ++/usr/share/cluster/fence_scsi_check\.pl -- gen_context(system_u:object_r:bin_t,s0) ++/usr/share/cluster/checkquorum -- gen_context(system_u:object_r:bin_t,s0) + /usr/share/e16/misc(/.*)? gen_context(system_u:object_r:bin_t,s0) + /usr/share/gedit-2/plugins/externaltools/tools(/.*)? gen_context(system_u:object_r:bin_t,s0) + /usr/share/gitolite/hooks/common/update -- gen_context(system_u:object_r:bin_t,s0) +@@ -286,6 +294,7 @@ ifdef(`distro_gentoo',` /usr/share/smolt/client(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/share/shorewall/compiler\.pl -- gen_context(system_u:object_r:bin_t,s0) /usr/share/shorewall/configpath -- gen_context(system_u:object_r:bin_t,s0) @@ -11127,7 +11147,7 @@ index 3fae11a..f8f940f 100644 /usr/share/shorewall-perl(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/share/shorewall-shell(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/share/shorewall-lite(/.*)? gen_context(system_u:object_r:bin_t,s0) -@@ -293,8 +298,10 @@ ifdef(`distro_gentoo',` +@@ -293,8 +302,10 @@ ifdef(`distro_gentoo',` /usr/share/spamassassin/sa-update\.cron gen_context(system_u:object_r:bin_t,s0) /usr/share/turboprint/lib(/.*)? -- gen_context(system_u:object_r:bin_t,s0) /usr/share/vhostmd/scripts(/.*)? gen_context(system_u:object_r:bin_t,s0) @@ -11139,18 +11159,21 @@ index 3fae11a..f8f940f 100644 ifdef(`distro_gentoo', ` /usr/.*-.*-linux-gnu/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) -@@ -307,9 +314,8 @@ ifdef(`distro_redhat', ` +@@ -306,10 +317,11 @@ ifdef(`distro_redhat', ` + /etc/gdm/[^/]+ -d gen_context(system_u:object_r:bin_t,s0) /etc/gdm/[^/]+/.* gen_context(system_u:object_r:bin_t,s0) ++/usr/lib/.*/scripts(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/lib/.*/program(/.*)? gen_context(system_u:object_r:bin_t,s0) -/usr/lib64/.*/program(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/lib/bluetooth(/.*)? -- gen_context(system_u:object_r:bin_t,s0) -/usr/lib64/bluetooth(/.*)? -- gen_context(system_u:object_r:bin_t,s0) ++/usr/lib/nfs-utils/scripts(/.*)? gen_context(system_u:object_r:bin_t,s0) +/usr/lib/oracle/xe/apps(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/lib/vmware-tools/(s)?bin32(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/lib/vmware-tools/(s)?bin64(/.*)? gen_context(system_u:object_r:bin_t,s0) /usr/share/authconfig/authconfig-gtk\.py -- gen_context(system_u:object_r:bin_t,s0) -@@ -319,9 +325,11 @@ ifdef(`distro_redhat', ` +@@ -319,9 +331,11 @@ ifdef(`distro_redhat', ` /usr/share/clamav/clamd-gen -- gen_context(system_u:object_r:bin_t,s0) /usr/share/clamav/freshclam-sleep -- gen_context(system_u:object_r:bin_t,s0) /usr/share/createrepo(/.*)? gen_context(system_u:object_r:bin_t,s0) @@ -11162,7 +11185,7 @@ index 3fae11a..f8f940f 100644 /usr/share/pwlib/make/ptlib-config -- gen_context(system_u:object_r:bin_t,s0) /usr/share/pydict/pydict\.py -- gen_context(system_u:object_r:bin_t,s0) /usr/share/rhn/rhn_applet/applet\.py -- gen_context(system_u:object_r:bin_t,s0) -@@ -363,7 +371,7 @@ ifdef(`distro_redhat', ` +@@ -363,7 +377,7 @@ ifdef(`distro_redhat', ` ifdef(`distro_suse', ` /usr/lib/cron/run-crons -- gen_context(system_u:object_r:bin_t,s0) /usr/lib/samba/classic/.* -- gen_context(system_u:object_r:bin_t,s0) @@ -11171,7 +11194,7 @@ index 3fae11a..f8f940f 100644 /usr/share/apache2/[^/]* -- gen_context(system_u:object_r:bin_t,s0) ') -@@ -375,8 +383,9 @@ ifdef(`distro_suse', ` +@@ -375,8 +389,9 @@ ifdef(`distro_suse', ` /var/ftp/bin(/.*)? gen_context(system_u:object_r:bin_t,s0) /var/lib/asterisk/agi-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) @@ -11182,7 +11205,7 @@ index 3fae11a..f8f940f 100644 /var/qmail/bin -d gen_context(system_u:object_r:bin_t,s0) /var/qmail/bin(/.*)? gen_context(system_u:object_r:bin_t,s0) -@@ -385,3 +394,4 @@ ifdef(`distro_suse', ` +@@ -385,3 +400,4 @@ ifdef(`distro_suse', ` ifdef(`distro_suse',` /var/lib/samba/bin/.+ gen_context(system_u:object_r:bin_t,s0) ') @@ -12323,7 +12346,7 @@ index 4f3b542..5a41e58 100644 corenet_udp_recvfrom_labeled($1, $2) corenet_raw_recvfrom_labeled($1, $2) diff --git a/policy/modules/kernel/corenetwork.te.in b/policy/modules/kernel/corenetwork.te.in -index 99b71cb..85d03ed 100644 +index 99b71cb..39dfc9f 100644 --- a/policy/modules/kernel/corenetwork.te.in +++ b/policy/modules/kernel/corenetwork.te.in @@ -11,11 +11,14 @@ attribute netif_type; @@ -12444,8 +12467,9 @@ index 99b71cb..85d03ed 100644 network_port(howl, tcp,5335,s0, udp,5353,s0) network_port(hplip, tcp,1782,s0, tcp,2207,s0, tcp,2208,s0, tcp, 8290,s0, tcp,50000,s0, tcp,50002,s0, tcp,8292,s0, tcp,9100,s0, tcp,9101,s0, tcp,9102,s0, tcp,9220,s0, tcp,9221,s0, tcp,9222,s0, tcp,9280,s0, tcp,9281,s0, tcp,9282,s0, tcp,9290,s0, tcp,9291,s0, tcp,9292,s0) -network_port(http, tcp,80,s0, tcp,443,s0, tcp,488,s0, tcp,8008,s0, tcp,8009,s0, tcp,8443,s0) #8443 is mod_nss default port +-network_port(http_cache, udp,3130,s0, tcp,8080,s0, tcp,8118,s0, tcp,10001-10010,s0) # 8118 is for privoxy +network_port(http, tcp,80,s0, tcp,443,s0, tcp,488,s0, tcp,8008,s0, tcp,8009,s0, tcp,8443,s0, tcp,18001,s0) #8443 is mod_nss default port #18001 is used for jboss - network_port(http_cache, udp,3130,s0, tcp,8080,s0, tcp,8118,s0, tcp,10001-10010,s0) # 8118 is for privoxy ++network_port(http_cache, udp,3130,s0, tcp,8080,s0, tcp,8118,s0, tcp,8123,s0, tcp,10001-10010,s0) # 8118 is for privoxy network_port(i18n_input, tcp,9010,s0) network_port(imaze, tcp,5323,s0, udp,5323,s0) network_port(inetd_child, tcp,1,s0, udp,1,s0, tcp,7,s0, udp,7,s0, tcp,9,s0, udp,9,s0, tcp,13,s0, udp,13,s0, tcp,19,s0, udp,19,s0, tcp,37,s0, udp,37,s0, tcp,512,s0, tcp,543,s0, tcp,544,s0, tcp,891,s0, udp,891,s0, tcp,892,s0, udp,892,s0, tcp,2105,s0, tcp,5666,s0) @@ -12497,10 +12521,10 @@ index 99b71cb..85d03ed 100644 network_port(pgpkeyserver, udp, 11371,s0, tcp,11371,s0) network_port(pingd, tcp,9125,s0) +network_port(piranha, tcp,3636,s0) -+network_port(pki_ca, tcp, 9180, s0, tcp, 9701, s0, tcp, 9443-9446, s0) -+network_port(pki_kra, tcp, 10180, s0, tcp, 10701, s0, tcp, 10443, s0, tcp, 10444, s0, tcp, 10445, s0) -+network_port(pki_ocsp, tcp, 11180, s0, tcp, 11701, s0, tcp, 11443, s0, tcp, 11444, s0, tcp, 11445, s0) -+network_port(pki_tks, tcp, 13180, s0, tcp, 13701, s0, tcp, 13443, s0, tcp, 13444, s0, tcp, 13445, s0) ++network_port(pki_ca, tcp, 9180, s0, tcp, 9701, s0, tcp, 9443-9447, s0) ++network_port(pki_kra, tcp, 10180, s0, tcp, 10701, s0, tcp, 10443-10446, s0) ++network_port(pki_ocsp, tcp, 11180, s0, tcp, 11701, s0, tcp, 11443-11446, s0) ++network_port(pki_tks, tcp, 13180, s0, tcp, 13701, s0, tcp, 13443-13446, s0) +network_port(pki_ra, tcp,12888-12889,s0) +network_port(pki_tps, tcp,7888-7889,s0) network_port(pop, tcp,106,s0, tcp,109,s0, tcp,110,s0, tcp,143,s0, tcp,220,s0, tcp,993,s0, tcp,995,s0, tcp,1109,s0) @@ -16175,7 +16199,7 @@ index 22821ff..20251b0 100644 ######################################## # diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if -index 97fcdac..63e494f 100644 +index 97fcdac..5923a0a 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -631,6 +631,27 @@ interface(`fs_getattr_cgroup',` @@ -16309,15 +16333,16 @@ index 97fcdac..63e494f 100644 dev_search_sysfs($1) ') -@@ -803,6 +870,7 @@ interface(`fs_manage_cgroup_files',` +@@ -803,6 +870,8 @@ interface(`fs_manage_cgroup_files',` ') manage_files_pattern($1, cgroup_t, cgroup_t) ++ manage_lnk_files_pattern($1, cgroup_t, cgroup_t) + fs_search_tmpfs($1) dev_search_sysfs($1) ') -@@ -1107,6 +1175,24 @@ interface(`fs_read_noxattr_fs_files',` +@@ -1107,6 +1176,24 @@ interface(`fs_read_noxattr_fs_files',` ######################################## ## @@ -16342,7 +16367,7 @@ index 97fcdac..63e494f 100644 ## Do not audit attempts to read all ## noxattrfs files. ## -@@ -1265,6 +1351,42 @@ interface(`fs_dontaudit_append_cifs_files',` +@@ -1265,6 +1352,42 @@ interface(`fs_dontaudit_append_cifs_files',` ######################################## ## @@ -16385,7 +16410,7 @@ index 97fcdac..63e494f 100644 ## Do not audit attempts to read or ## write files on a CIFS or SMB filesystem. ## -@@ -1279,7 +1401,7 @@ interface(`fs_dontaudit_rw_cifs_files',` +@@ -1279,7 +1402,7 @@ interface(`fs_dontaudit_rw_cifs_files',` type cifs_t; ') @@ -16394,7 +16419,7 @@ index 97fcdac..63e494f 100644 ') ######################################## -@@ -1542,6 +1664,25 @@ interface(`fs_cifs_domtrans',` +@@ -1542,6 +1665,25 @@ interface(`fs_cifs_domtrans',` domain_auto_transition_pattern($1, cifs_t, $2) ') @@ -16420,7 +16445,7 @@ index 97fcdac..63e494f 100644 ####################################### ## ## Create, read, write, and delete dirs -@@ -2148,6 +2289,7 @@ interface(`fs_list_inotifyfs',` +@@ -2148,6 +2290,7 @@ interface(`fs_list_inotifyfs',` ') allow $1 inotifyfs_t:dir list_dir_perms; @@ -16428,7 +16453,7 @@ index 97fcdac..63e494f 100644 ') ######################################## -@@ -2480,6 +2622,7 @@ interface(`fs_read_nfs_files',` +@@ -2480,6 +2623,7 @@ interface(`fs_read_nfs_files',` type nfs_t; ') @@ -16436,7 +16461,7 @@ index 97fcdac..63e494f 100644 allow $1 nfs_t:dir list_dir_perms; read_files_pattern($1, nfs_t, nfs_t) ') -@@ -2518,6 +2661,7 @@ interface(`fs_write_nfs_files',` +@@ -2518,6 +2662,7 @@ interface(`fs_write_nfs_files',` type nfs_t; ') @@ -16444,7 +16469,7 @@ index 97fcdac..63e494f 100644 allow $1 nfs_t:dir list_dir_perms; write_files_pattern($1, nfs_t, nfs_t) ') -@@ -2544,6 +2688,25 @@ interface(`fs_exec_nfs_files',` +@@ -2544,6 +2689,25 @@ interface(`fs_exec_nfs_files',` ######################################## ## @@ -16470,7 +16495,7 @@ index 97fcdac..63e494f 100644 ## Append files ## on a NFS filesystem. ## -@@ -2584,6 +2747,42 @@ interface(`fs_dontaudit_append_nfs_files',` +@@ -2584,6 +2748,42 @@ interface(`fs_dontaudit_append_nfs_files',` ######################################## ## @@ -16513,7 +16538,7 @@ index 97fcdac..63e494f 100644 ## Do not audit attempts to read or ## write files on a NFS filesystem. ## -@@ -2598,7 +2797,7 @@ interface(`fs_dontaudit_rw_nfs_files',` +@@ -2598,7 +2798,7 @@ interface(`fs_dontaudit_rw_nfs_files',` type nfs_t; ') @@ -16522,7 +16547,7 @@ index 97fcdac..63e494f 100644 ') ######################################## -@@ -2736,7 +2935,7 @@ interface(`fs_search_removable',` +@@ -2736,7 +2936,7 @@ interface(`fs_search_removable',` ## ## ## @@ -16531,7 +16556,7 @@ index 97fcdac..63e494f 100644 ## ## # -@@ -2772,7 +2971,7 @@ interface(`fs_read_removable_files',` +@@ -2772,7 +2972,7 @@ interface(`fs_read_removable_files',` ## ## ## @@ -16540,7 +16565,7 @@ index 97fcdac..63e494f 100644 ## ## # -@@ -2965,6 +3164,7 @@ interface(`fs_manage_nfs_dirs',` +@@ -2965,6 +3165,7 @@ interface(`fs_manage_nfs_dirs',` type nfs_t; ') @@ -16548,7 +16573,7 @@ index 97fcdac..63e494f 100644 allow $1 nfs_t:dir manage_dir_perms; ') -@@ -3005,6 +3205,7 @@ interface(`fs_manage_nfs_files',` +@@ -3005,6 +3206,7 @@ interface(`fs_manage_nfs_files',` type nfs_t; ') @@ -16556,7 +16581,7 @@ index 97fcdac..63e494f 100644 manage_files_pattern($1, nfs_t, nfs_t) ') -@@ -3045,6 +3246,7 @@ interface(`fs_manage_nfs_symlinks',` +@@ -3045,6 +3247,7 @@ interface(`fs_manage_nfs_symlinks',` type nfs_t; ') @@ -16564,7 +16589,7 @@ index 97fcdac..63e494f 100644 manage_lnk_files_pattern($1, nfs_t, nfs_t) ') -@@ -3958,6 +4160,42 @@ interface(`fs_dontaudit_list_tmpfs',` +@@ -3958,6 +4161,42 @@ interface(`fs_dontaudit_list_tmpfs',` ######################################## ## @@ -16607,7 +16632,7 @@ index 97fcdac..63e494f 100644 ## Create, read, write, and delete ## tmpfs directories ## -@@ -4175,6 +4413,24 @@ interface(`fs_dontaudit_use_tmpfs_chr_dev',` +@@ -4175,6 +4414,24 @@ interface(`fs_dontaudit_use_tmpfs_chr_dev',` ######################################## ## @@ -16632,7 +16657,7 @@ index 97fcdac..63e494f 100644 ## Relabel character nodes on tmpfs filesystems. ## ## -@@ -4457,6 +4713,8 @@ interface(`fs_mount_all_fs',` +@@ -4457,6 +4714,8 @@ interface(`fs_mount_all_fs',` ') allow $1 filesystem_type:filesystem mount; @@ -16641,7 +16666,7 @@ index 97fcdac..63e494f 100644 ') ######################################## -@@ -4503,7 +4761,7 @@ interface(`fs_unmount_all_fs',` +@@ -4503,7 +4762,7 @@ interface(`fs_unmount_all_fs',` ## ##

## Allow the specified domain to @@ -16650,7 +16675,7 @@ index 97fcdac..63e494f 100644 ## Example attributes: ##

##