rpms/selinux-policy/F-11 policy-20090521.patch, 1.40, 1.41 selinux-policy.spec, 1.895, 1.896

Miroslav Grepl mgrepl at fedoraproject.org
Tue Aug 11 08:52:45 UTC 2009


Author: mgrepl

Update of /cvs/extras/rpms/selinux-policy/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7290

Modified Files:
	policy-20090521.patch selinux-policy.spec 
Log Message:
- Allow polkit_auth_t to getattr of all persistent filesystems



policy-20090521.patch:
 mcs                                |   12 -
 modules/admin/certwatch.te         |    4 
 modules/admin/kismet.te            |   16 ++
 modules/admin/logrotate.te         |    6 
 modules/admin/mrtg.te              |    4 
 modules/admin/prelink.te           |    9 -
 modules/admin/readahead.te         |    2 
 modules/admin/rpm.if               |   18 ++
 modules/admin/rpm.te               |    4 
 modules/admin/shorewall.fc         |   12 +
 modules/admin/shorewall.if         |  166 ++++++++++++++++++++++
 modules/admin/shorewall.te         |  103 +++++++++++++
 modules/admin/sudo.if              |    4 
 modules/admin/usermanage.te        |    1 
 modules/apps/calamaris.te          |    4 
 modules/apps/gitosis.fc            |    4 
 modules/apps/gitosis.if            |   96 ++++++++++++
 modules/apps/gitosis.te            |   43 +++++
 modules/apps/mozilla.if            |   16 ++
 modules/apps/mozilla.te            |   14 +
 modules/apps/nsplugin.if           |    2 
 modules/apps/qemu.fc               |    1 
 modules/apps/qemu.te               |    5 
 modules/apps/sandbox.if            |  134 +++++++++++++-----
 modules/apps/sandbox.te            |  274 ++++++++++++++++++++++++++++++++++---
 modules/apps/screen.if             |    1 
 modules/apps/vmware.fc             |    1 
 modules/apps/vmware.te             |    6 
 modules/kernel/corecommands.fc     |    9 +
 modules/kernel/corenetwork.te.in   |    4 
 modules/kernel/devices.fc          |    2 
 modules/kernel/devices.if          |  145 +++++++++++++++++++
 modules/kernel/devices.te          |   13 +
 modules/kernel/domain.if           |   45 ++----
 modules/kernel/domain.te           |   30 +++-
 modules/kernel/files.if            |    3 
 modules/kernel/kernel.if           |    2 
 modules/kernel/terminal.if         |   19 ++
 modules/roles/staff.te             |   12 +
 modules/roles/sysadm.if            |   35 ++++
 modules/roles/sysadm.te            |    4 
 modules/roles/unconfineduser.te    |    9 -
 modules/roles/unprivuser.te        |    4 
 modules/roles/xguest.te            |    6 
 modules/services/apache.fc         |    4 
 modules/services/automount.if      |   18 ++
 modules/services/avahi.te          |    2 
 modules/services/bluetooth.te      |    1 
 modules/services/clamav.te         |    4 
 modules/services/consolekit.te     |    3 
 modules/services/cron.if           |   19 --
 modules/services/cron.te           |    2 
 modules/services/cups.fc           |    2 
 modules/services/cups.te           |   21 ++
 modules/services/dbus.if           |    4 
 modules/services/dcc.te            |    8 -
 modules/services/ddclient.if       |   25 +++
 modules/services/devicekit.te      |    6 
 modules/services/dnsmasq.te        |    4 
 modules/services/dovecot.if        |   34 ++--
 modules/services/dovecot.te        |   20 +-
 modules/services/exim.te           |    6 
 modules/services/fetchmail.te      |    2 
 modules/services/fprintd.te        |    8 -
 modules/services/ftp.te            |    7 
 modules/services/gnomeclock.te     |    1 
 modules/services/gpsd.fc           |    3 
 modules/services/gpsd.te           |   17 ++
 modules/services/hal.te            |   14 +
 modules/services/kerberos.if       |    2 
 modules/services/kerberos.te       |   12 +
 modules/services/lircd.te          |    4 
 modules/services/mailman.if        |    1 
 modules/services/mta.if            |    1 
 modules/services/mysql.te          |    6 
 modules/services/nis.te            |    3 
 modules/services/nslcd.fc          |    4 
 modules/services/nslcd.if          |  145 +++++++++++++++++++
 modules/services/nslcd.te          |   50 ++++++
 modules/services/openvpn.te        |    1 
 modules/services/pcscd.te          |    3 
 modules/services/polkit.fc         |    2 
 modules/services/polkit.if         |    2 
 modules/services/polkit.te         |    3 
 modules/services/postfix.if        |   26 +++
 modules/services/postfix.te        |   26 ---
 modules/services/postgresql.te     |    2 
 modules/services/ppp.if            |    6 
 modules/services/privoxy.te        |    3 
 modules/services/pyzor.fc          |    2 
 modules/services/pyzor.te          |    2 
 modules/services/rpc.te            |   12 +
 modules/services/rsync.te          |    2 
 modules/services/sendmail.if       |   39 +++++
 modules/services/sendmail.te       |    7 
 modules/services/setroubleshoot.te |    5 
 modules/services/shorewall.fc      |   12 -
 modules/services/shorewall.if      |  166 ----------------------
 modules/services/shorewall.te      |  102 -------------
 modules/services/spamassassin.fc   |    4 
 modules/services/spamassassin.te   |    1 
 modules/services/ssh.if            |   23 ++-
 modules/services/ssh.te            |    4 
 modules/services/uucp.te           |    2 
 modules/services/virt.te           |   29 ++-
 modules/services/xserver.fc        |    2 
 modules/services/xserver.if        |   41 +++++
 modules/services/xserver.te        |   11 +
 modules/system/authlogin.fc        |    3 
 modules/system/authlogin.if        |  223 ++++++++++++++++--------------
 modules/system/authlogin.te        |   27 +--
 modules/system/init.fc             |    2 
 modules/system/init.te             |    2 
 modules/system/ipsec.te            |   34 ++--
 modules/system/iptables.te         |    4 
 modules/system/iscsi.te            |    1 
 modules/system/libraries.fc        |   11 +
 modules/system/locallogin.te       |    6 
 modules/system/miscfiles.fc        |    1 
 modules/system/mount.te            |    1 
 modules/system/sysnetwork.te       |   17 +-
 modules/system/udev.fc             |    1 
 modules/system/udev.te             |    6 
 modules/system/userdomain.if       |   28 ++-
 modules/system/virtual.te          |    5 
 modules/system/xen.te              |    1 
 126 files changed, 2040 insertions(+), 640 deletions(-)

Index: policy-20090521.patch
===================================================================
RCS file: /cvs/extras/rpms/selinux-policy/F-11/policy-20090521.patch,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -r1.40 -r1.41
--- policy-20090521.patch	5 Aug 2009 21:49:50 -0000	1.40
+++ policy-20090521.patch	11 Aug 2009 08:52:45 -0000	1.41
@@ -2157,10 +2157,79 @@ diff -b -B --ignore-all-space --exclude-
  
  auth_use_nsswitch(system_cronjob_t)
  
+diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/services/cups.fc serefpolicy-3.6.12/policy/modules/services/cups.fc
+--- nsaserefpolicy/policy/modules/services/cups.fc	2009-06-25 10:19:44.000000000 +0200
++++ serefpolicy-3.6.12/policy/modules/services/cups.fc	2009-08-11 09:45:17.000000000 +0200
+@@ -53,6 +53,8 @@
+ /var/lib/cups/certs	-d	gen_context(system_u:object_r:cupsd_rw_etc_t,s0)
+ /var/lib/cups/certs/.*	--	gen_context(system_u:object_r:cupsd_rw_etc_t,s0)
+ 
++/var/lib/hp(/.*)?               gen_context(system_u:object_r:hplip_var_lib_t,s0)
++
+ /var/log/cups(/.*)?		gen_context(system_u:object_r:cupsd_log_t,s0)
+ /var/log/turboprint.*		gen_context(system_u:object_r:cupsd_log_t,s0)
+ 
 diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/services/cups.te serefpolicy-3.6.12/policy/modules/services/cups.te
 --- nsaserefpolicy/policy/modules/services/cups.te	2009-06-25 10:19:44.000000000 +0200
-+++ serefpolicy-3.6.12/policy/modules/services/cups.te	2009-08-04 13:01:36.000000000 +0200
-@@ -733,6 +733,8 @@
++++ serefpolicy-3.6.12/policy/modules/services/cups.te	2009-08-11 09:44:51.000000000 +0200
+@@ -59,12 +59,13 @@
+ init_daemon_domain(hplip_t, hplip_exec_t)
+ # For CUPS to run as a backend
+ cups_backend(hplip_t, hplip_exec_t)
+-domtrans_pattern(cupsd_config_t, hplip_exec_t, hplip_t)
+-read_files_pattern(cupsd_config_t, hplip_etc_t, hplip_etc_t)
+ 
+ type hplip_etc_t;
+ files_config_file(hplip_etc_t)
+ 
++type hplip_var_lib_t;
++files_type(hplip_var_lib_t)
++
+ type hplip_var_run_t;
+ files_pid_file(hplip_var_run_t)
+ 
+@@ -163,6 +164,9 @@
+ files_pid_filetrans(cupsd_t, cupsd_var_run_t, file)
+ 
+ allow cupsd_t hplip_t:process {signal sigkill };
++
++read_files_pattern(cupsd_t, hplip_etc_t, hplip_etc_t)
++
+ allow cupsd_t hplip_var_run_t:file read_file_perms;
+ 
+ stream_connect_pattern(cupsd_t, ptal_var_run_t, ptal_var_run_t, ptal_t)
+@@ -376,6 +380,10 @@
+ manage_files_pattern(cupsd_config_t, cupsd_config_var_run_t, cupsd_config_var_run_t)
+ files_pid_filetrans(cupsd_config_t, cupsd_config_var_run_t, file)
+ 
++domtrans_pattern(cupsd_config_t, hplip_exec_t, hplip_t)
++ 
++read_files_pattern(cupsd_config_t, hplip_etc_t, hplip_etc_t)
++
+ kernel_read_system_state(cupsd_config_t)
+ kernel_read_all_sysctls(cupsd_config_t)
+ 
+@@ -574,9 +582,8 @@
+ read_lnk_files_pattern(hplip_t, hplip_etc_t, hplip_etc_t)
+ files_search_etc(hplip_t)
+ 
+-fs_rw_anon_inodefs_files(hplip_t)
+-
+-read_files_pattern(cupsd_t, hplip_etc_t, hplip_etc_t)
++manage_files_pattern(hplip_t, hplip_var_lib_t, hplip_var_lib_t)
++manage_lnk_files_pattern(hplip_t, hplip_var_lib_t, hplip_var_lib_t)
+ 
+ manage_fifo_files_pattern(hplip_t, hplip_tmp_t, hplip_tmp_t)
+ files_tmp_filetrans(hplip_t, hplip_tmp_t, fifo_file )
+@@ -615,6 +622,7 @@
+ 
+ fs_getattr_all_fs(hplip_t)
+ fs_search_auto_mountpoints(hplip_t)
++fs_rw_anon_inodefs_files(hplip_t)
+ 
+ # for python
+ corecmd_exec_bin(hplip_t)
+@@ -733,6 +741,8 @@
  files_read_etc_files(cups_pdf_t)
  files_read_usr_files(cups_pdf_t)
  
@@ -2169,7 +2238,7 @@ diff -b -B --ignore-all-space --exclude-
  kernel_read_system_state(cups_pdf_t)
  
  auth_use_nsswitch(cups_pdf_t)
-@@ -746,6 +748,7 @@
+@@ -746,6 +756,7 @@
  manage_dirs_pattern(cups_pdf_t, cups_pdf_tmp_t, cups_pdf_tmp_t)
  files_tmp_filetrans(cups_pdf_t, cups_pdf_tmp_t, { file dir })
  
@@ -3092,7 +3161,7 @@ diff -b -B --ignore-all-space --exclude-
  ########################################
 diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/services/polkit.te serefpolicy-3.6.12/policy/modules/services/polkit.te
 --- nsaserefpolicy/policy/modules/services/polkit.te	2009-06-25 10:19:44.000000000 +0200
-+++ serefpolicy-3.6.12/policy/modules/services/polkit.te	2009-07-28 14:10:06.000000000 +0200
++++ serefpolicy-3.6.12/policy/modules/services/polkit.te	2009-08-07 12:21:31.000000000 +0200
 @@ -72,6 +72,7 @@
  manage_files_pattern(polkit_t, polkit_var_run_t, polkit_var_run_t)
  files_pid_filetrans(polkit_t, polkit_var_run_t, { file dir })
@@ -3101,6 +3170,15 @@ diff -b -B --ignore-all-space --exclude-
  userdom_read_all_users_state(polkit_t)
  
  optional_policy(`
+@@ -99,6 +100,8 @@
+ 
+ domain_use_interactive_fds(polkit_auth_t)
+ 
++fs_getattr_all_fs(polkit_auth_t)
++
+ files_read_etc_files(polkit_auth_t)
+ files_read_usr_files(polkit_auth_t)
+ 
 diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/services/postfix.if serefpolicy-3.6.12/policy/modules/services/postfix.if
 --- nsaserefpolicy/policy/modules/services/postfix.if	2009-06-25 10:19:44.000000000 +0200
 +++ serefpolicy-3.6.12/policy/modules/services/postfix.if	2009-07-31 13:05:32.000000000 +0200
@@ -4755,6 +4833,17 @@ diff -b -B --ignore-all-space --exclude-
  
  ifdef(`distro_redhat',`
  /etc/sysconfig/clock	--	gen_context(system_u:object_r:locale_t,s0)
+diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/mount.te serefpolicy-3.6.12/policy/modules/system/mount.te
+--- nsaserefpolicy/policy/modules/system/mount.te	2009-06-25 10:19:44.000000000 +0200
++++ serefpolicy-3.6.12/policy/modules/system/mount.te	2009-08-11 10:04:04.000000000 +0200
+@@ -72,6 +72,7 @@
+ dev_list_all_dev_nodes(mount_t)
+ dev_read_usbfs(mount_t)
+ dev_read_rand(mount_t)
++dev_read_sysfs(mount_t)  
+ dev_rw_lvm_control(mount_t)
+ dev_dontaudit_getattr_all_chr_files(mount_t)
+ dev_dontaudit_getattr_memory_dev(mount_t)
 diff -b -B --ignore-all-space --exclude-from=exclude -N -u -r nsaserefpolicy/policy/modules/system/sysnetwork.te serefpolicy-3.6.12/policy/modules/system/sysnetwork.te
 --- nsaserefpolicy/policy/modules/system/sysnetwork.te	2009-06-25 10:19:44.000000000 +0200
 +++ serefpolicy-3.6.12/policy/modules/system/sysnetwork.te	2009-07-17 09:43:41.000000000 +0200


Index: selinux-policy.spec
===================================================================
RCS file: /cvs/extras/rpms/selinux-policy/F-11/selinux-policy.spec,v
retrieving revision 1.895
retrieving revision 1.896
diff -u -p -r1.895 -r1.896
--- selinux-policy.spec	5 Aug 2009 21:49:50 -0000	1.895
+++ selinux-policy.spec	11 Aug 2009 08:52:45 -0000	1.896
@@ -20,7 +20,7 @@
 Summary: SELinux policy configuration
 Name: selinux-policy
 Version: 3.6.12
-Release: 74%{?dist}
+Release: 75%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 Source: serefpolicy-%{version}.tgz
@@ -475,6 +475,9 @@ exit 0
 %endif
 
 %changelog
+* Tue Aug 11 2009 Miroslav Grepl <mgrepl at redhat.com> 3.6.12-75
+- Allow polkit_auth_t to getattr of all persistent filesystems
+
 * Wed Aug 5 2009 Miroslav Grepl <mgrepl at redhat.com> 3.6.12-74
 - Allow svirt images to create sock_file in svirt_var_run_t
 




More information about the fedora-extras-commits mailing list