Hello community,

here is the log from the commit of package dnsmasq for openSUSE:Factory checked 
in at 2016-06-29 15:04:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dnsmasq (Old)
 and      /work/SRC/openSUSE:Factory/.dnsmasq.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dnsmasq"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dnsmasq/dnsmasq.changes  2016-03-09 
15:15:31.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.dnsmasq.new/dnsmasq.changes     2016-06-29 
15:04:15.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Jun 16 12:39:18 UTC 2016 - m...@suse.com
+
+- dnsmasq-groups.patch: Initialize the supplementary groups of the
+  dnsmasq user (bsc#859298).
+
+-------------------------------------------------------------------

New:
----
  dnsmasq-groups.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dnsmasq.spec ++++++
--- /var/tmp/diff_new_pack.hwGzcn/_old  2016-06-29 15:04:16.000000000 +0200
+++ /var/tmp/diff_new_pack.hwGzcn/_new  2016-06-29 15:04:16.000000000 +0200
@@ -34,6 +34,7 @@
 Source6:        SuSEFirewall.dnsmasq-dhcp
 Source7:        SuSEFirewall.dnsmasq-dns
 Source8:        %{name}-rpmlintrc
+Patch0:         dnsmasq-groups.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  dbus-1-devel
 BuildRequires:  dos2unix
@@ -66,6 +67,7 @@
 
 %prep
 %setup -q
+%patch0
 
 # Some docs have the DOS line ends
 dos2unix contrib/systemd/dbus_activation


++++++ dnsmasq-groups.patch ++++++
--- src/dnsmasq.c.orig
+++ src/dnsmasq.c
@@ -557,11 +557,10 @@ int main (int argc, char **argv)
   if (!option_bool(OPT_DEBUG) && getuid() == 0)   
     {
       int bad_capabilities = 0;
-      gid_t dummy;
       
-      /* remove all supplimentary groups */
+      /* set the supplimentary groups of the daemon user */
       if (gp && 
-         (setgroups(0, &dummy) == -1 ||
+         (initgroups(daemon->username, gp->gr_gid) == -1 ||
           setgid(gp->gr_gid) == -1))
        {
          send_event(err_pipe[1], EVENT_GROUP_ERR, errno, daemon->groupname);


Reply via email to