Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-oslo.rootwrap for 
openSUSE:Factory checked in at 2022-05-25 20:34:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.rootwrap (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new.2254 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslo.rootwrap"

Wed May 25 20:34:32 2022 rev:15 rq:979072 version:6.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-oslo.rootwrap/python-oslo.rootwrap.changes    
    2021-12-12 00:57:46.994591534 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new.2254/python-oslo.rootwrap.changes
      2022-05-25 20:34:49.548249711 +0200
@@ -1,0 +2,6 @@
+Tue May 24 21:09:10 UTC 2022 - [email protected]
+
+- update to version 6.3.1
+  - CommandFilter should allow exec from full path
+
+-------------------------------------------------------------------

Old:
----
  oslo.rootwrap-6.3.0.tar.gz

New:
----
  oslo.rootwrap-6.3.1.tar.gz

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

Other differences:
------------------
++++++ python-oslo.rootwrap.spec ++++++
--- /var/tmp/diff_new_pack.SS60TP/_old  2022-05-25 20:34:50.052250413 +0200
+++ /var/tmp/diff_new_pack.SS60TP/_new  2022-05-25 20:34:50.056250419 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-oslo.rootwrap
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,18 @@
 
 
 Name:           python-oslo.rootwrap
-Version:        6.3.0
+Version:        6.3.1
 Release:        0
 Summary:        Filtering shell commands to run as root from OpenStack services
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://docs.openstack.org/oslo.rootwrap
-Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.rootwrap/oslo.rootwrap-6.3.0.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.rootwrap/oslo.rootwrap-6.3.1.tar.gz
 BuildRequires:  openstack-macros
 BuildRequires:  python3-eventlet
 BuildRequires:  python3-fixtures
-BuildRequires:  python3-mock
 BuildRequires:  python3-oslotest
 BuildRequires:  python3-pbr
-BuildRequires:  python3-six
 BuildRequires:  python3-stestr
 BuildRequires:  python3-testtools
 BuildArch:      noarch
@@ -46,7 +44,6 @@
 
 %package -n python3-oslo.rootwrap
 Summary:        Filtering shell commands to run as root from OpenStack services
-Requires:       python3-six
 %if 0%{?suse_version}
 Obsoletes:      python2-oslo.rootwrap < 6.0.1
 %endif
@@ -66,14 +63,14 @@
 Documentation for the OpenStack oslo.rootwrap library.
 
 %prep
-%autosetup -p1 -n oslo.rootwrap-6.3.0
+%autosetup -p1 -n oslo.rootwrap-6.3.1
 %py_req_cleanup
 
 %build
 %{py3_build}
 
 # generate html docs
-PBR_VERSION=6.3.0 %sphinx_build -b html doc/source doc/build/html
+PBR_VERSION=6.3.1 %sphinx_build -b html doc/source doc/build/html
 rm -rf doc/build/html/.{doctrees,buildinfo}
 
 %install

++++++ oslo.rootwrap-6.3.0.tar.gz -> oslo.rootwrap-6.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/AUTHORS 
new/oslo.rootwrap-6.3.1/AUTHORS
--- old/oslo.rootwrap-6.3.0/AUTHORS     2021-07-01 14:40:27.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/AUTHORS     2022-02-21 16:31:28.000000000 +0100
@@ -14,6 +14,7 @@
 Daniel Bengtsson <[email protected]>
 Davanum Srinivas <[email protected]>
 Davanum Srinivas <[email protected]>
+David Vallee Delisle <[email protected]>
 Dina Belova <[email protected]>
 Dirk Mueller <[email protected]>
 Doug Hellmann <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/ChangeLog 
new/oslo.rootwrap-6.3.1/ChangeLog
--- old/oslo.rootwrap-6.3.0/ChangeLog   2021-07-01 14:40:27.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/ChangeLog   2022-02-21 16:31:28.000000000 +0100
@@ -1,6 +1,11 @@
 CHANGES
 =======
 
+6.3.1
+-----
+
+* CommandFilter should allow exec from full path
+
 6.3.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/PKG-INFO 
new/oslo.rootwrap-6.3.1/PKG-INFO
--- old/oslo.rootwrap-6.3.0/PKG-INFO    2021-07-01 14:40:27.751943800 +0200
+++ new/oslo.rootwrap-6.3.1/PKG-INFO    2022-02-21 16:31:28.416208300 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: oslo.rootwrap
-Version: 6.3.0
+Version: 6.3.1
 Summary: Oslo Rootwrap
 Home-page: https://docs.openstack.org/oslo.rootwrap/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/PKG-INFO 
new/oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/PKG-INFO
--- old/oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/PKG-INFO     2021-07-01 
14:40:27.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/PKG-INFO     2022-02-21 
16:31:28.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: oslo.rootwrap
-Version: 6.3.0
+Version: 6.3.1
 Summary: Oslo Rootwrap
 Home-page: https://docs.openstack.org/oslo.rootwrap/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/pbr.json 
new/oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/pbr.json
--- old/oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/pbr.json     2021-07-01 
14:40:27.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/pbr.json     2022-02-21 
16:31:28.000000000 +0100
@@ -1 +1 @@
-{"git_version": "25fcff9", "is_release": true}
\ No newline at end of file
+{"git_version": "1b1b960", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-6.3.0/oslo_rootwrap/filters.py 
new/oslo.rootwrap-6.3.1/oslo_rootwrap/filters.py
--- old/oslo.rootwrap-6.3.0/oslo_rootwrap/filters.py    2021-07-01 
14:39:57.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/oslo_rootwrap/filters.py    2022-02-21 
16:30:59.000000000 +0100
@@ -74,7 +74,11 @@
 
     def match(self, userargs):
         """Only check that the first argument (command) matches exec_path."""
-        return userargs and os.path.basename(self.exec_path) == userargs[0]
+        if userargs:
+            base_path_matches = os.path.basename(self.exec_path) == userargs[0]
+            exact_path_matches = self.exec_path == userargs[0]
+            return exact_path_matches or base_path_matches
+        return False
 
     def preexec(self):
         """Setuid in subprocess right before command is invoked."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/oslo.rootwrap-6.3.0/oslo_rootwrap/tests/test_functional.py 
new/oslo.rootwrap-6.3.1/oslo_rootwrap/tests/test_functional.py
--- old/oslo.rootwrap-6.3.0/oslo_rootwrap/tests/test_functional.py      
2021-07-01 14:39:57.000000000 +0200
+++ new/oslo.rootwrap-6.3.1/oslo_rootwrap/tests/test_functional.py      
2022-02-21 16:30:59.000000000 +0100
@@ -89,6 +89,14 @@
         self.assertEqual(expect_out, out)
         self.assertEqual(expect_err, err)
 
+    def test_run_with_path(self):
+        code, out, err = self.execute(['/bin/echo', 'teststr'])
+        self.assertEqual(0, code)
+
+    def test_run_with_bogus_path(self):
+        code, out, err = self.execute(['/home/bob/bin/echo', 'teststr'])
+        self.assertEqual(cmd.RC_UNAUTHORIZED, code)
+
     def test_run_command_not_found(self):
         code, out, err = self.execute(['unknown_cmd'])
         self.assertEqual(cmd.RC_NOEXECFOUND, code)

Reply via email to