Skip to content

: patch set to update the git reference policy

Guido Trentalancia selinux-refpolicy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest34 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34: patch to allow readahead read init_t fifo filespolicy/modules/admin/readahead.te policy/modules/system/init.if+19 -02 replies
1/34: patch to allow readahead read init_t fifo files+0 -01 reply
2/34: patch for the usermanage modulepolicy/modules/admin/usermanage.te+3 -23 replies
2/34: patch for the usermanage module+0 -00 replies
3/34: patch to use pam instead of nsswitch in the usermanage modulepolicy/modules/admin/usermanage.te+2 -52 replies
3/34: patch to use pam instead of nsswitch in the usermanage module+0 -00 replies
3/34: patch to use pam instead of nsswitch in the usermanage module+0 -00 replies
4/34: patch to make cpufreqselector usable with dbuspolicy/modules/apps/cpufreqselector.if policy/modules/apps/cpufreqselector.te policy/modules/services/dbus.te +1 more+32 -01 reply
5/34: patch to label XDG config files and allow policykit to use thempolicy/modules/apps/gnome.fc policy/modules/services/policykit.te+5 -12 replies
5/34: patch to label XDG config files and allow policykit to use them+0 -00 replies
6/34: patch to update mount permissionspolicy/modules/kernel/corecommands.if policy/modules/system/mount.te+34 -00 replies
6/34: patch to update mount permissions+0 -00 replies
7/34: patch to fix a typo in the files modulepolicy/modules/kernel/files.if+1 -11 reply
8/34: patch to allow the devicekit module to work with dbuspolicy/modules/kernel/kernel.if policy/modules/services/dbus.te policy/modules/services/devicekit.te +2 more+65 -11 reply
8/34: patch to allow the devicekit module to work with dbus+0 -00 replies
9/34: patch for logging in the sysadm rolepolicy/modules/roles/sysadm.te+4 -01 reply
9/34: patch for logging in the sysadm role+0 -01 reply
9/34: patch for logging in the sysadm role+0 -01 reply
9/34: patch for logging in the sysadm role+0 -01 reply
10/34: patch to list/read consolekit pid filespolicy/modules/services/consolekit.if policy/modules/services/dbus.te policy/modules/services/policykit.te+28 -01 reply
10/34: patch to list/read consolekit pid files+0 -00 replies
11/34: patch to allow consolekit shutdown the systempolicy/modules/services/consolekit.te+4 -01 reply
11/34: patch to allow consolekit shutdown the system+0 -01 reply
11/34: patch to allow consolekit shutdown the system+0 -00 replies
11/34: patch to allow consolekit shutdown the system+0 -01 reply
11/34: patch to allow consolekit shutdown the system+0 -00 replies
12/34: patch to allow consolekit dbus chatpolicy/modules/services/dbus.te+1 -00 replies
13/34: patch to allow networkmanager dbus chatpolicy/modules/services/dbus.te policy/modules/services/networkmanager.te policy/modules/services/xserver.te+9 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -02 replies
13/34: patch to allow networkmanager dbus chat+0 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -03 replies
13/34: patch to allow networkmanager dbus chat+0 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -01 reply
13/34: patch to allow networkmanager dbus chat+0 -00 replies
13/34: patch to allow networkmanager dbus chat+0 -00 replies
14/34: patch to allow dbus chat for avahipolicy/modules/services/ntp.te policy/modules/services/xserver.te+8 -00 replies
15/34: patch to allow the ntp module to work with dbuspolicy/modules/services/dbus.te policy/modules/services/ntp.if policy/modules/services/ntp.te+48 -00 replies
16/34: patch to allow plymouthd getsched permissionpolicy/modules/services/plymouthd.te+1 -11 reply
17/34: patch to allow plymouthd use unallocated ttyspolicy/modules/services/plymouthd.te+2 -01 reply
17/34: patch to allow plymouthd use unallocated ttys+0 -01 reply
17/34: patch to allow plymouthd use unallocated ttys+0 -01 reply
17/34: patch to allow plymouthd use unallocated ttys+0 -00 replies
18/34: patch for the policykit module (labeling, start from dbus, read xdm files)policy/modules/services/policykit.fc policy/modules/services/policykit.te policy/modules/services/xserver.if+31 -22 replies
18/34: patch for the policykit module (labeling, start from dbus, read xdm files)+0 -01 reply
18/34: patch for the policykit module (labeling, start from dbus, read xdm files)+0 -02 replies
18/34: patch for the policykit module (labeling, start from dbus, read xdm files)+0 -01 reply
19/34: patch for the setroubleshoot module (new optional blocks)policy/modules/services/setroubleshoot.te policy/modules/system/logging.if+29 -00 replies
20/34: patch to fix a comment in the setroubleshoot modulepolicy/modules/services/setroubleshoot.if+1 -11 reply
21/34: patch to allow smartmon to read usr filespolicy/modules/services/smartmon.te+2 -01 reply
22/34: patch to allow dbus chat in the xserver modulepolicy/modules/services/dbus.te policy/modules/services/xserver.if policy/modules/services/xserver.te+37 -00 replies
23/34: patch to add needed permissions to the authlogin modulepolicy/modules/system/authlogin.te+3 -11 reply
24/34: patch to add a file context for /sbin/upstartpolicy/modules/system/init.fc+2 -01 reply
25/34: patch to allow the audit dispatcher to read the system statepolicy/modules/system/logging.te+2 -01 reply
26/34: patch to allow dbus chat between setroubleshoot and audisppolicy/modules/system/logging.te+4 -00 replies
27/34: patch to add a missing interface in the sysnetwork modulepolicy/modules/system/sysnetwork.if+20 -01 reply
28/34: patch to allow reading hal pid files from ifconfig_tpolicy/modules/system/sysnetwork.te+1 -02 replies
28/34: patch to allow reading hal pid files from ifconfig_t+0 -01 reply
29/34: patch to add sys_ptrace permission to the dbus modulepolicy/modules/services/dbus.te+1 -12 replies
29/34: patch to add sys_ptrace permission to the dbus module+0 -00 replies
30/34: patch to allow the cron module to manage job keyspolicy/modules/services/cron.if policy/modules/services/cron.te+20 -00 replies
30/34: patch to allow the cron module to manage job keys+0 -00 replies
31/34: patch to allow the execution of bin_t files from the dbus modulepolicy/modules/services/dbus.te+1 -00 replies
32/34: patch to allow mount use kernel file descriptorspolicy/modules/system/mount.te+1 -01 reply
32/34: patch to allow mount use kernel file descriptors+0 -01 reply
32/34: patch to allow mount use kernel file descriptors+0 -01 reply
32/34: patch to allow mount use kernel file descriptors+0 -03 replies
33/34: patch to allow audit_control from the cron daemonpolicy/modules/services/cron.te+1 -10 replies
34/34: patch to allow the cron daemon to manage sysadm keyspolicy/modules/roles/sysadm.if policy/modules/services/cron.te+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [refpolicy] [PATCH 0/34]: patch set to update the git reference policy

Hello !

I am trying to resubmit a set of patches to update the git Reference Policy with permissions needed for usability on a generic recent Linux installation.

This set of patches has been on RFC for several weeks now. Since then it has been changed accordingly to the feedback received. In particular, Dominick Grift has contributed substantially to this effort.

I have tried to add a description to each patch, although sometimes the single patch is so short and self-explanatory that it is difficult to comment.

In general each patch adds one or more permissions that appeared lacking in the Reference Policy after testing it on a generic recent Linux installation.

There are 34 patches in total. I cannot guarantee that all of them will apply cleanly in an order different from the one below (because there might be unavoidable dependencies between some of the patches).

[1/34] update-readahead.patch
This patch adds a new interface init_read_fifo_file() and uses it so that readahead can read init_t fifo files.

[2/34] update-usermanage.patch
This patch adds some needed permissions for passwd_t in policy/modules/admin/usermanage.te.

[3/34] update-usermanage-use-pam.patch
This patch allows to use pam instead of nsswitch in policy/modules/admin/usermanage.te.

[4/34] update-cpufreqselector.patch
This patch adds a new interface to the cpufreqselector module to allow dbus chat. it then uses such interface to allow dbus chat with system_dbusd_t and xdm_t. This patch also adds some other permissions needed to run cpufreqselector.

[5/34] update-policykit-read-xdg-config.patch
This patch labels HOME_DIR/\.config as gnome_home_t and then allows policykit to read such kind of files.

[6/34] update-mount.patch
This patch adds a new interface for mount. It then uses the new interface and adds some permissions needed to use mount. It also adds a conditional block for redhat systems that use a mount script called /sbin/mount.tmpfs. Finally the patch adds a permission needed for example by ntfs-3g (storage_rw_fuse).

[7/34] update-kernel-files-fix-typo.patch
This patch fixes a typo in the description of kernel files interfaces.

[8/34] update-devicekit.patch
This patch adds two new interfaces (one for the kernel and the other for mount). It then allows dbus chat between dbus and devicekit and between xdm and devicekit. It then adds some permissions needed to run devicekit.

[9/34] update-roles-sysadm.patch
This patch adds some permissions (through interface calls) needed by the sysadm role (in particular logging permissions).

[10/34] update-read-consolekit-pid-files.patch
This patch adds a new interface to the consolekit module so that pid files can be listed. It then uses such interface so that consolekit pid files can be listed and read by both dbus and policykit.

[11/34] update-consolekit-shutdown.patch
This patch adds some permissions needed to shutdown the system using the graphical interface.

[12/34] update-consolekit-dbus-chat.patch
This patch allows dbus chat between consolekit and dbus.

[13/34] update-networkmanager.patch
This patch allows dbus chat between networkmanager and dbus and between networkmanager and xdm. It also adds a missing permission (sysnet_read_dhcpc_state) to the networkmanager module.

[14/34] update-avahi-dbus-chat.patch
This patch allows dbus chat between avahi and ntpd and between avahi and xdm.

[15/34] update-ntp-dbus-chat-and-stream-connect.patch This patch adds two new interfaces to the ntp module. The first interface can be used to allow dbus chat and the second interface allows to connect to dbus using a unix domain stream socket. Both interfaces are used to allow dbus chat between ntpd and dbus and to allow ntpd to connect to dbus using a unix domain stream socket.

[16/34] update-plymouth-getsched.patch
This patch adds a self:process getsched permission for plymouthd_t.

[17/34] update-plymouth-unallocated-ttys.patch This patch allows plymouthd to use unallocated ttys.

[18/34] update-policykit.patch
This patch adds a file context for the /var/lib/polkit-1 directory. It then allows policykit to be started from dbus. It also adds some other permissions needed to run policykit and a new interface which is used to read xdm files.

[19/34] update-setroubleshoot.patch
This patch adds a new interface to the logging module and uses such interface (as optional policy) from the setroubleshoot module. The patch also adds another optional policy block to the setroubleshoot (so that the locate module can read lib files).

[20/34] update-setroubleshoot-fix-interface-comment.patch This patch clarifies a comment in the description of one of the setroubleshoot interfaces.

[21/34] update-smartmon-read-usr-files.patch This patch adds a permission to the smartmon module so that it can read usr files.

[22/34] update-xserver.patch
This patch adds an interface to allow dbus chat with xdm. It then uses such interface to actually allow dbus chat between dbus and xdm. The patch also allows dbus chat between hal and xdm, between policykit and xdm and between setroubleshoot and xdm.

[23/34] update-authlogin.patch
This patch adds some needed permissions to the chkpwd_t domain in policy/modules/system/authlogin.te.

[24/34] update-init-label-upstart.patch
This patch adds a file context for /sbin/upstart.

[25/34] update-logging-read-system-state.patch This patch allows the audit dispatcher to read the system state.

[26/34] update-logging-setroubleshoot-dbus-chat.patch This patch allows dbus chat between setroubleshoot and the audit dispatcher.

[27/34] update-sysnetwork-add-new-dhcp-interface.patch This patch adds a new interface to the sysnetwork module so that the DHCP client state directories can be searched.

[28/34] update-sysnetwork-hal-read-pid-files.patch This patch allows to read hal pid files from the ifconfig_t context.

[29/34] update-dbus-sys-ptrace.patch
This patch adds self:capability sys_ptrace to the dbus module.

[30/34] update-cron-manage-keys.patch
This patch has been added as needed after recent (> 02022011) changes affecting the cron module.

[31/34] update-dbus-exec-bin.patch
This patch allows corecmd_exec_bin from the dbus module. This is required to run python from dbus-daemon-launch-helper.

[32/34] update-mount-use-fds.patch
This patch allows mount to use kernel file descriptors.

[33/34] update-cron-audit-control.patch
This patch has been added as needed after recent (> 02022011) changes affecting the cron module.

[34/34] update-cron-manage-sysadm-keys.patch
This patch has been added as needed after recent (> 02022011) changes affecting the cron module.

Regards,

Guido