commit uid_wrapper for openSUSE:Factory

2020-03-08 Thread root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2020-03-08 22:23:48

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new.26092 (New)


Package is "uid_wrapper"

Sun Mar  8 22:23:48 2020 rev:10 rq:781890 version:1.2.8

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2019-08-24 
18:42:19.237780924 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new.26092/uid_wrapper.changes   
2020-03-08 22:24:02.580073967 +0100
@@ -1,0 +2,7 @@
+Thu Mar  5 15:16:09 UTC 2020 - Andreas Schneider 
+
+- Update to version 1.2.8
+  * Fix path in pkgconfig module
+  * Fix path in cmake find module
+
+---

Old:

  uid_wrapper-1.2.7.tar.gz
  uid_wrapper-1.2.7.tar.gz.asc

New:

  uid_wrapper-1.2.8.tar.gz
  uid_wrapper-1.2.8.tar.gz.asc



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.3yclSu/_old  2020-03-08 22:24:03.096074285 +0100
+++ /var/tmp/diff_new_pack.3yclSu/_new  2020-03-08 22:24:03.100074287 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package uid_wrapper
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,13 +24,13 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.2.7
+Version:1.2.8
 Release:0
 
 Summary:A wrapper for privilege seperation
 License:GPL-3.0-or-later
 Group:  Development/Libraries/C and C++
-Url:http://cwrap.org/
+URL:http://cwrap.org/
 
 Source0:https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc

++ uid_wrapper-1.2.7.tar.gz -> uid_wrapper-1.2.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.7/CMakeLists.txt 
new/uid_wrapper-1.2.8/CMakeLists.txt
--- old/uid_wrapper-1.2.7/CMakeLists.txt2019-07-16 11:15:57.0 
+0200
+++ new/uid_wrapper-1.2.8/CMakeLists.txt2020-03-05 15:43:46.0 
+0100
@@ -11,7 +11,7 @@
 include(DefineCMakeDefaults)
 include(DefineCompilerFlags)
 
-project(uid_wrapper VERSION 1.2.7 LANGUAGES C)
+project(uid_wrapper VERSION 1.2.8 LANGUAGES C)
 
 # global needed variables
 set(APPLICATION_NAME ${PROJECT_NAME})
@@ -23,7 +23,7 @@
 # Increment AGE. Set REVISION to 0
 #   If the source code was changed, but there were no interface changes:
 # Increment REVISION.
-set(LIBRARY_VERSION "0.0.8")
+set(LIBRARY_VERSION "0.0.9")
 set(LIBRARY_SOVERSION "0")
 
 # add definitions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.7/ChangeLog 
new/uid_wrapper-1.2.8/ChangeLog
--- old/uid_wrapper-1.2.7/ChangeLog 2019-07-16 11:15:57.0 +0200
+++ new/uid_wrapper-1.2.8/ChangeLog 2020-03-05 15:43:14.0 +0100
@@ -1,6 +1,10 @@
 ChangeLog
 ==
 
+version 1.2.8 (released 2020-03-05)
+  * Fix path in pkgconfig module
+  * Fix path in cmake find module
+
 version 1.2.7 (released 2019-07-15)
   * Fix unsetting initial XIDs
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.7/ConfigureChecks.cmake 
new/uid_wrapper-1.2.8/ConfigureChecks.cmake
--- old/uid_wrapper-1.2.7/ConfigureChecks.cmake 2019-07-15 08:11:02.0 
+0200
+++ new/uid_wrapper-1.2.8/ConfigureChecks.cmake 2019-10-18 12:27:23.0 
+0200
@@ -9,13 +9,9 @@
 
 set(PACKAGE ${PROJECT_NAME})
 set(VERSION ${PROJECT_VERSION})
-set(DATADIR ${DATA_INSTALL_DIR})
-set(LIBDIR ${LIB_INSTALL_DIR})
-set(PLUGINDIR "${PLUGIN_INSTALL_DIR}-${LIBRARY_SOVERSION}")
-set(SYSCONFDIR ${SYSCONF_INSTALL_DIR})
 
-set(BINARYDIR ${CMAKE_BINARY_DIR})
-set(SOURCEDIR ${CMAKE_SOURCE_DIR})
+set(BINARYDIR ${uid_wrapper_BINARY_DIR})
+set(SOURCEDIR ${uid_wrapper_SOURCE_DIR})
 
 function(COMPILER_DUMPVERSION _OUTPUT_VERSION)
 # Remove whitespaces from the argument.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.7/DefineOptions.cmake 
new/uid_wrapper-1.2.8/DefineOptions.cmake
--- old/uid_wrapper-1.2.7/DefineOptions.cmake   2013-12-04 16:56:28.0 
+0100
+++ new/uid_wrapper-1.2.8/DefineOptions.cmake   2019-10-18 12:15:27.0 
+0200
@@ -1 +1,2 @@
 option(UNIT_TESTING "Build with unit tests" OFF)
+option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
diff -urN '--exclude=CVS' '--exclude=.

commit uid_wrapper for openSUSE:Factory

2019-08-24 Thread root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2019-08-24 18:42:15

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new.7948 (New)


Package is "uid_wrapper"

Sat Aug 24 18:42:15 2019 rev:9 rq:724981 version:1.2.7

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2019-07-17 
14:23:51.775992071 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new.7948/uid_wrapper.changes
2019-08-24 18:42:19.237780924 +0200
@@ -1,0 +2,6 @@
+Wed Aug 21 08:46:42 UTC 2019 - Andreas Schneider 
+
+- Change BR to pkgconf
+- Change Requires to Recommends for pkgconf and cmake
+
+---



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.08iM2v/_old  2019-08-24 18:42:19.689780880 +0200
+++ /var/tmp/diff_new_pack.08iM2v/_new  2019-08-24 18:42:19.689780880 +0200
@@ -39,11 +39,11 @@
 
 BuildRequires:  cmake
 BuildRequires:  libcmocka-devel
-BuildRequires:  pkg-config
+BuildRequires:  pkgconf
 BuildRequires:  system-user-nobody
 
-Requires:   cmake
-Requires:   pkg-config
+Recommends: cmake
+Recommends: pkgconf
 
 %description
 Some projects like a file server need privilege separation to be able to switch
@@ -74,11 +74,7 @@
 %cmake_install
 
 %check
-pushd build
-ls -l tests
-ldd tests/test_uwrap_enabled
-ctest --output-on-failure
-popd
+%ctest
 
 %post -p /sbin/ldconfig
 






commit uid_wrapper for openSUSE:Factory

2019-07-17 Thread root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2019-07-17 14:23:50

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new.1887 (New)


Package is "uid_wrapper"

Wed Jul 17 14:23:50 2019 rev:8 rq:715625 version:1.2.7

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2017-07-28 
09:40:09.467517080 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new.1887/uid_wrapper.changes
2019-07-17 14:23:51.775992071 +0200
@@ -1,0 +2,15 @@
+Tue Jul 16 09:18:30 UTC 2019 - Andreas Schneider 
+
+- Update to version 1.2.7
+  * Fix unsetting initial XIDs
+- Fix running the tests
+
+---
+Mon Jul 15 09:30:54 UTC 2019 - Andreas Schneider 
+
+- Update to version 1.2.6
+  * Fix manpage installation
+  * Fix cmake-config installation
+  * Fixed running with sanitizers
+
+---

Old:

  uid_wrapper-1.2.4.tar.gz

New:

  uid_wrapper-1.2.7.tar.gz
  uid_wrapper-1.2.7.tar.gz.asc
  uid_wrapper.keyring



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.3bBTYD/_old  2019-07-17 14:23:52.643989263 +0200
+++ /var/tmp/diff_new_pack.3bBTYD/_new  2019-07-17 14:23:52.647989250 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package uid_wrapper
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,20 +24,23 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.2.4
+Version:1.2.7
 Release:0
 
 Summary:A wrapper for privilege seperation
-License:GPL-3.0+
+License:GPL-3.0-or-later
 Group:  Development/Libraries/C and C++
 Url:http://cwrap.org/
 
 Source0:https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
+Source2:https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
+Source3:uid_wrapper.keyring
 
 BuildRequires:  cmake
 BuildRequires:  libcmocka-devel
 BuildRequires:  pkg-config
+BuildRequires:  system-user-nobody
 
 Requires:   cmake
 Requires:   pkg-config
@@ -62,7 +65,8 @@
 %build
 # CMAKE_SKIP_RPATH:BOOL=OFF is need to run the tests!
 %cmake \
-  -DUNIT_TESTING=ON
+  -DUNIT_TESTING=ON \
+  -DCMAKE_SKIP_RPATH:BOOL=OFF
 
 make %{?_smp_mflags} VERBOSE=1
 
@@ -71,7 +75,9 @@
 
 %check
 pushd build
-make %{?_smp_mflags} test || cat $(find Testing -name "*.log")
+ls -l tests
+ldd tests/test_uwrap_enabled
+ctest --output-on-failure
 popd
 
 %post -p /sbin/ldconfig
@@ -80,7 +86,8 @@
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS README ChangeLog COPYING
+%doc AUTHORS README.md ChangeLog
+%license LICENSE
 %{_libdir}/libuid_wrapper.so*
 %dir %{_libdir}/cmake
 %dir %{_libdir}/cmake/uid_wrapper

++ uid_wrapper-1.2.4.tar.gz -> uid_wrapper-1.2.7.tar.gz ++
 24904 lines of diff (skipped)




commit uid_wrapper for openSUSE:Factory

2017-07-28 Thread root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2017-07-28 09:40:05

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Fri Jul 28 09:40:05 2017 rev:7 rq:512450 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2017-07-17 
09:02:33.920547577 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2017-07-28 09:40:09.467517080 +0200
@@ -1,0 +2,15 @@
+Tue Jul 25 09:17:48 UTC 2017 - a...@cryptomilk.org
+
+- Update to version 1.2.4
+  * Added deadlock workaround for glibc < 2.24
+  * Fixed a possible deadlock bug if uid_wrapper is turned off
+
+---
+Fri Jul 14 13:24:08 UTC 2017 - a...@cryptomilk.org
+
+- Update to version 1.2.3
+  * Logging is always turned on now
+  * Fixed a memory leak
+  * Limited number of groups during fork+exec
+
+---

Old:

  uid_wrapper-1.2.2.tar.gz

New:

  uid_wrapper-1.2.4.tar.gz



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.O4qSXM/_old  2017-07-28 09:40:10.099428086 +0200
+++ /var/tmp/diff_new_pack.O4qSXM/_new  2017-07-28 09:40:10.103427523 +0200
@@ -24,7 +24,7 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.2.2
+Version:1.2.4
 Release:0
 
 Summary:A wrapper for privilege seperation

++ uid_wrapper-1.2.2.tar.gz -> uid_wrapper-1.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.2/CMakeLists.txt 
new/uid_wrapper-1.2.4/CMakeLists.txt
--- old/uid_wrapper-1.2.2/CMakeLists.txt2017-07-13 08:41:33.0 
+0200
+++ new/uid_wrapper-1.2.4/CMakeLists.txt2017-07-24 09:12:05.0 
+0200
@@ -8,7 +8,7 @@
 
 set(APPLICATION_VERSION_MAJOR "1")
 set(APPLICATION_VERSION_MINOR "2")
-set(APPLICATION_VERSION_PATCH "2")
+set(APPLICATION_VERSION_PATCH "4")
 
 set(APPLICATION_VERSION 
"${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.2/ChangeLog 
new/uid_wrapper-1.2.4/ChangeLog
--- old/uid_wrapper-1.2.2/ChangeLog 2017-07-13 08:41:33.0 +0200
+++ new/uid_wrapper-1.2.4/ChangeLog 2017-07-24 09:12:17.0 +0200
@@ -1,7 +1,16 @@
 ChangeLog
 ==
 
-version 1.2.2 (released 2107-07-13)
+version 1.2.4 (released 2017-07-24)
+  * Added deadlock workaround for glibc < 2.24
+  * Fixed a possible deadlock bug if uid_wrapper is turned off
+
+version 1.2.3 (released 2017-07-14)
+  * Logging is always turned on now
+  * Fixed a memory leak
+  * Limited number of groups during fork+exec
+
+version 1.2.2 (released 2017-07-13)
   * Added support for fork'ed and then exec'ed processes
   * Added support for Alpha
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.2/src/uid_wrapper.c 
new/uid_wrapper-1.2.4/src/uid_wrapper.c
--- old/uid_wrapper-1.2.2/src/uid_wrapper.c 2017-07-13 08:41:33.0 
+0200
+++ new/uid_wrapper-1.2.4/src/uid_wrapper.c 2017-07-21 17:20:14.0 
+0200
@@ -133,9 +133,6 @@
UWRAP_LOG_TRACE
 };
 
-#ifdef NDEBUG
-# define UWRAP_LOG(...)
-#else /* NDEBUG */
 static void uwrap_log(enum uwrap_dbglvl_e dbglvl, const char *function, const 
char *format, ...) PRINTF_ATTRIBUTE(3, 4);
 # define UWRAP_LOG(dbglvl, ...) uwrap_log((dbglvl), __func__, __VA_ARGS__)
 
@@ -145,42 +142,43 @@
va_list va;
const char *d;
unsigned int lvl = 0;
+   const char *prefix = "UWRAP";
 
d = getenv("UID_WRAPPER_DEBUGLEVEL");
if (d != NULL) {
lvl = atoi(d);
}
 
+   if (lvl < dbglvl) {
+   return;
+   }
+
va_start(va, format);
vsnprintf(buffer, sizeof(buffer), format, va);
va_end(va);
 
-   if (lvl >= dbglvl) {
-   const char *prefix = "UWRAP";
-   switch (dbglvl) {
-   case UWRAP_LOG_ERROR:
-   prefix = "UWRAP_ERROR";
-   break;
-   case UWRAP_LOG_WARN:
-   prefix = "UWRAP_WARN";
-   break;
-   case UWRAP_LOG_DEBUG:
-   prefix = "UWRAP_DEBUG";
-   break;
-   case UWRAP_LOG_TRACE:
-

commit uid_wrapper for openSUSE:Factory

2017-07-17 Thread root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2017-07-17 09:02:27

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Mon Jul 17 09:02:27 2017 rev:6 rq:510083 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2016-04-01 
13:01:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2017-07-17 09:02:33.920547577 +0200
@@ -1,0 +2,7 @@
+Thu Jul 13 06:54:57 UTC 2017 - a...@cryptomilk.org
+
+- Update to version 1.2.2
+  * Added support for fork'ed and then exec'ed processes
+  * Added support for Alpha
+
+---

Old:

  uid_wrapper-1.2.1.tar.gz

New:

  uid_wrapper-1.2.2.tar.gz



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.y8LGgc/_old  2017-07-17 09:02:36.180229375 +0200
+++ /var/tmp/diff_new_pack.y8LGgc/_new  2017-07-17 09:02:36.184228812 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package uid_wrapper
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.2.1
+Version:1.2.2
 Release:0
 
 Summary:A wrapper for privilege seperation

++ uid_wrapper-1.2.1.tar.gz -> uid_wrapper-1.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.1/CMakeLists.txt 
new/uid_wrapper-1.2.2/CMakeLists.txt
--- old/uid_wrapper-1.2.1/CMakeLists.txt2016-03-16 14:53:33.0 
+0100
+++ new/uid_wrapper-1.2.2/CMakeLists.txt2017-07-13 08:41:33.0 
+0200
@@ -8,7 +8,7 @@
 
 set(APPLICATION_VERSION_MAJOR "1")
 set(APPLICATION_VERSION_MINOR "2")
-set(APPLICATION_VERSION_PATCH "1")
+set(APPLICATION_VERSION_PATCH "2")
 
 set(APPLICATION_VERSION 
"${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.1/ChangeLog 
new/uid_wrapper-1.2.2/ChangeLog
--- old/uid_wrapper-1.2.1/ChangeLog 2016-03-16 14:53:22.0 +0100
+++ new/uid_wrapper-1.2.2/ChangeLog 2017-07-13 08:41:33.0 +0200
@@ -1,6 +1,10 @@
 ChangeLog
 ==
 
+version 1.2.2 (released 2107-07-13)
+  * Added support for fork'ed and then exec'ed processes
+  * Added support for Alpha
+
 version 1.2.1 (released 2016-03-16)
   * Documented missing options.
   * Fixed a comipilation issue with -O3.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.1/src/uid_wrapper.c 
new/uid_wrapper-1.2.2/src/uid_wrapper.c
--- old/uid_wrapper-1.2.1/src/uid_wrapper.c 2016-02-17 17:15:13.0 
+0100
+++ new/uid_wrapper-1.2.2/src/uid_wrapper.c 2017-07-13 08:41:33.0 
+0200
@@ -407,6 +407,13 @@
if (handle != NULL) {
break;
}
+
+   /* glibc on Alpha and IA64 is libc.so.6.1 */
+   snprintf(soname, sizeof(soname), 
"libc.so.%d.1", i);
+   handle = dlopen(soname, flags);
+   if (handle != NULL) {
+   break;
+   }
}
 
uwrap.libc.handle = handle;
@@ -808,6 +815,66 @@
  * UWRAP ID HANDLING
  */
 
+#define GROUP_STRING_SIZE 16384
+
+/**
+ * This function exports all the IDs of the current user so if
+ * we fork and then exec we can setup uid_wrapper in the new process
+ * with those IDs.
+ */
+static void uwrap_export_ids(struct uwrap_thread *id)
+{
+   char groups_str[GROUP_STRING_SIZE] = {0};
+   size_t groups_str_size = sizeof(groups_str);
+   char unsigned_str[32] = {0};
+   int i;
+
+   /* UIDS */
+   snprintf(unsigned_str, sizeof(unsigned_str), "%u", id->ruid);
+   setenv("UID_WRAPPER_INITIAL_RUID", unsigned_str, 1);
+
+   snprintf(unsigned_str, sizeof(unsigned_str), "%u", id->euid);
+   setenv("UID_WRAPPER_INITIAL_EUID", unsigned_str, 1);
+
+   snprintf(unsigned_str, sizeof(unsigned_str), "%u", id->suid);
+   setenv

commit uid_wrapper for openSUSE:Factory

2016-04-01 Thread h_root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2016-04-01 13:01:51

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2016-02-17 
12:25:52.0 +0100
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2016-04-01 13:01:52.0 +0200
@@ -1,0 +2,7 @@
+Mon Mar 21 18:17:52 UTC 2016 - a...@cryptomilk.org
+
+- Update to version 1.2.1
+  * Documented missing options.
+  * Fixed a comipilation issue with -O3.
+
+---

Old:

  uid_wrapper-1.2.0.tar.gz

New:

  uid_wrapper-1.2.1.tar.gz



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.19L6km/_old  2016-04-01 13:01:53.0 +0200
+++ /var/tmp/diff_new_pack.19L6km/_new  2016-04-01 13:01:53.0 +0200
@@ -24,7 +24,7 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.2.0
+Version:1.2.1
 Release:0
 
 Summary:A wrapper for privilege seperation

++ uid_wrapper-1.2.0.tar.gz -> uid_wrapper-1.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.0/CMakeLists.txt 
new/uid_wrapper-1.2.1/CMakeLists.txt
--- old/uid_wrapper-1.2.0/CMakeLists.txt2015-10-29 08:21:16.0 
+0100
+++ new/uid_wrapper-1.2.1/CMakeLists.txt2016-03-16 14:53:33.0 
+0100
@@ -8,7 +8,7 @@
 
 set(APPLICATION_VERSION_MAJOR "1")
 set(APPLICATION_VERSION_MINOR "2")
-set(APPLICATION_VERSION_PATCH "0")
+set(APPLICATION_VERSION_PATCH "1")
 
 set(APPLICATION_VERSION 
"${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
 
@@ -19,7 +19,7 @@
 # Increment AGE. Set REVISION to 0
 #   If the source code was changed, but there were no interface changes:
 # Increment REVISION.
-set(LIBRARY_VERSION "0.0.5")
+set(LIBRARY_VERSION "0.0.6")
 set(LIBRARY_SOVERSION "0")
 
 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is 
checked
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.0/ChangeLog 
new/uid_wrapper-1.2.1/ChangeLog
--- old/uid_wrapper-1.2.0/ChangeLog 2015-10-29 08:20:51.0 +0100
+++ new/uid_wrapper-1.2.1/ChangeLog 2016-03-16 14:53:22.0 +0100
@@ -1,6 +1,10 @@
 ChangeLog
 ==
 
+version 1.2.1 (released 2016-03-16)
+  * Documented missing options.
+  * Fixed a comipilation issue with -O3.
+
 version 1.2.0 (released 2015-10-29)
   * Added privilege checks for all set*uid and set*gid functions.
   * Added a lot more and accurate tests which work as root.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uid_wrapper-1.2.0/doc/uid_wrapper.1 
new/uid_wrapper-1.2.1/doc/uid_wrapper.1
--- old/uid_wrapper-1.2.0/doc/uid_wrapper.1 2015-09-17 20:15:04.0 
+0200
+++ new/uid_wrapper-1.2.1/doc/uid_wrapper.1 2015-11-03 12:17:22.0 
+0100
@@ -2,12 +2,12 @@
 .\" Title: uid_wrapper
 .\"Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 .\" Generator: DocBook XSL Stylesheets v1.78.1 
-.\"  Date: 2014-07-11
+.\"  Date: 2015-11-03
 .\"Manual: \ \&
 .\"Source: \ \&
 .\"  Language: English
 .\"
-.TH "UID_WRAPPER" "1" "2014\-07\-11" "\ \&" "\ \&"
+.TH "UID_WRAPPER" "1" "2015\-11\-03" "\ \&" "\ \&"
 .\" -
 .\" * Define some portability stuff
 .\" -
@@ -139,6 +139,25 @@
 3 = TRACE
 .RE
 .RE
+.PP
+\fBUID_WRAPPER_MYUID\fR
+.RS 4
+This environment variable can be used to tell uid_wrapper to let geteuid() 
return the real (instead of the faked) UID of the user who started the process 
with uid_wrapper\&.
+.RE
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+uid_t uid;
+
+setenv("UID_WRAPPER_MYUID", "1", 1);
+uid = geteuid();
+unsetenv("UID_WRAPPER_MYUID");
+.fi
+.if n \{\
+.RE
+.\}
 .SH "EXAMPLE"
 .sp
 .if n \{\
@@ -146,8 +165,26 @@
 .\}
 .nf
 $ LD_PRELOAD=libuid_wrapper\&.so UID_WRAPPER=1 UID_WRAPPER_ROOT=1 id
-uid=0(root) gid=0(root) groups=100(users),0(root)
+uid=0(root) gid=0(root) 0(root)
 .fi
 .if n \{\
 .RE
 .\}
+.SH "WORKAROUNDS"
+.sp
+If you need to write code that behaves differently depending on whether 
uid_wrapper is enabled or not, for example in cases where you have to file 
permissions, you can predefine the uid_wrapper_enabled() function in your 
pro

commit uid_wrapper for openSUSE:Factory

2016-02-17 Thread h_root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2016-02-17 10:31:59

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2015-10-30 
13:43:46.0 +0100
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2016-02-17 12:25:52.0 +0100
@@ -1,0 +2,5 @@
+Sun Feb 14 11:47:01 UTC 2016 - jeng...@inai.de
+
+- Editorial fixes to the description
+
+---



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.wQCGUj/_old  2016-02-17 12:25:53.0 +0100
+++ /var/tmp/diff_new_pack.wQCGUj/_new  2016-02-17 12:25:53.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package uid_wrapper
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -45,15 +45,15 @@
 %description
 Some projects like a file server need privilege separation to be able to switch
 to the connnection user and do file operations. uid_wrapper convincingly lies
-to the application letting it believe it is operating as root and even
-switching betwen uids and gids as needed.
+to the application, letting it believe it is operating as root and even
+switching betwen UIDs and GIDs as needed.
 
-To use it set the following environment variables:
+To use it, set the following environment variables:
 
 LD_PRELOAD=libuid_wrapper.so
 UID_WRAPPER=1
 
-This package doesn't have a devel package cause this project is for
+This package does not have a devel package, because this project is for
 development/testing.
 
 %prep




commit uid_wrapper for openSUSE:Factory

2015-10-30 Thread h_root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2015-10-30 13:43:45

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2015-09-09 
20:21:34.0 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2015-10-30 13:43:46.0 +0100
@@ -1,0 +2,8 @@
+Thu Oct 29 11:57:14 UTC 2015 - a...@cryptomilk.org
+
+- Update to version 1.2.0
+  * Added privilege checks for all set*uid and set*gid functions.
+  * Added a lot more and accurate tests which work as root.
+  * Fixed some minor issues
+
+---

Old:

  uid_wrapper-1.1.1.tar.gz

New:

  uid_wrapper-1.2.0.tar.gz



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.ukZ6UF/_old  2015-10-30 13:43:47.0 +0100
+++ /var/tmp/diff_new_pack.ukZ6UF/_new  2015-10-30 13:43:47.0 +0100
@@ -24,7 +24,7 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.1.1
+Version:1.2.0
 Release:0
 
 Summary:A wrapper for privilege seperation

++ uid_wrapper-1.1.1.tar.gz -> uid_wrapper-1.2.0.tar.gz ++
 27176 lines of diff (skipped)




commit uid_wrapper for openSUSE:Factory

2015-09-09 Thread h_root
Hello community,

here is the log from the commit of package uid_wrapper for openSUSE:Factory 
checked in at 2015-09-09 20:21:33

Comparing /work/SRC/openSUSE:Factory/uid_wrapper (Old)
 and  /work/SRC/openSUSE:Factory/.uid_wrapper.new (New)


Package is "uid_wrapper"

Changes:

--- /work/SRC/openSUSE:Factory/uid_wrapper/uid_wrapper.changes  2015-07-03 
00:22:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.uid_wrapper.new/uid_wrapper.changes 
2015-09-09 20:21:34.0 +0200
@@ -1,0 +2,8 @@
+Wed Sep  2 11:30:45 UTC 2015 - a...@cryptomilk.org
+
+- Update to version 1.1.1
+  * Fixed getres(uid|gid) detection if unsupported.
+  * Fixed the configure on Solaris
+  * Added a lot more tests
+
+---

Old:

  uid_wrapper-1.1.0.tar.gz

New:

  uid_wrapper-1.1.1.tar.gz



Other differences:
--
++ uid_wrapper.spec ++
--- /var/tmp/diff_new_pack.B7k71S/_old  2015-09-09 20:21:34.0 +0200
+++ /var/tmp/diff_new_pack.B7k71S/_new  2015-09-09 20:21:34.0 +0200
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 # NOTE ##
 #
 # This is a special library. You are not able to link this library.
@@ -23,7 +24,7 @@
 # NOTE ##
 
 Name:   uid_wrapper
-Version:1.1.0
+Version:1.1.1
 Release:0
 
 Summary:A wrapper for privilege seperation
@@ -38,8 +39,8 @@
 BuildRequires:  libcmocka-devel
 BuildRequires:  pkg-config
 
-Requires:   pkg-config
 Requires:   cmake
+Requires:   pkg-config
 
 %description
 Some projects like a file server need privilege separation to be able to switch

++ uid_wrapper-1.1.0.tar.gz -> uid_wrapper-1.1.1.tar.gz ++
 1614 lines of diff (skipped)