diff -Nru python-oslo.rootwrap-6.3.0/AUTHORS python-oslo.rootwrap-6.3.1/AUTHORS --- python-oslo.rootwrap-6.3.0/AUTHORS 2021-07-01 12:40:27.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/AUTHORS 2022-02-21 15:31:28.000000000 +0000 @@ -14,6 +14,7 @@ Daniel Bengtsson Davanum Srinivas Davanum Srinivas +David Vallee Delisle Dina Belova Dirk Mueller Doug Hellmann diff -Nru python-oslo.rootwrap-6.3.0/ChangeLog python-oslo.rootwrap-6.3.1/ChangeLog --- python-oslo.rootwrap-6.3.0/ChangeLog 2021-07-01 12:40:27.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/ChangeLog 2022-02-21 15:31:28.000000000 +0000 @@ -1,6 +1,11 @@ CHANGES ======= +6.3.1 +----- + +* CommandFilter should allow exec from full path + 6.3.0 ----- diff -Nru python-oslo.rootwrap-6.3.0/debian/changelog python-oslo.rootwrap-6.3.1/debian/changelog --- python-oslo.rootwrap-6.3.0/debian/changelog 2021-07-21 13:43:01.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/debian/changelog 2022-03-02 20:26:44.000000000 +0000 @@ -1,3 +1,9 @@ +python-oslo.rootwrap (6.3.1-0ubuntu1) jammy; urgency=medium + + * New upstream release for OpenStack Yoga. + + -- Corey Bryant Wed, 02 Mar 2022 15:26:44 -0500 + python-oslo.rootwrap (6.3.0-0ubuntu1) impish; urgency=medium [ Chris MacNaughton ] diff -Nru python-oslo.rootwrap-6.3.0/oslo_rootwrap/filters.py python-oslo.rootwrap-6.3.1/oslo_rootwrap/filters.py --- python-oslo.rootwrap-6.3.0/oslo_rootwrap/filters.py 2021-07-01 12:39:57.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/oslo_rootwrap/filters.py 2022-02-21 15:30:59.000000000 +0000 @@ -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 -Nru python-oslo.rootwrap-6.3.0/oslo_rootwrap/tests/test_functional.py python-oslo.rootwrap-6.3.1/oslo_rootwrap/tests/test_functional.py --- python-oslo.rootwrap-6.3.0/oslo_rootwrap/tests/test_functional.py 2021-07-01 12:39:57.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/oslo_rootwrap/tests/test_functional.py 2022-02-21 15:30:59.000000000 +0000 @@ -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) diff -Nru python-oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/pbr.json python-oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/pbr.json --- python-oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/pbr.json 2021-07-01 12:40:27.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/pbr.json 2022-02-21 15:31:28.000000000 +0000 @@ -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 -Nru python-oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/PKG-INFO python-oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/PKG-INFO --- python-oslo.rootwrap-6.3.0/oslo.rootwrap.egg-info/PKG-INFO 2021-07-01 12:40:27.000000000 +0000 +++ python-oslo.rootwrap-6.3.1/oslo.rootwrap.egg-info/PKG-INFO 2022-02-21 15:31:28.000000000 +0000 @@ -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 -Nru python-oslo.rootwrap-6.3.0/PKG-INFO python-oslo.rootwrap-6.3.1/PKG-INFO --- python-oslo.rootwrap-6.3.0/PKG-INFO 2021-07-01 12:40:27.751943800 +0000 +++ python-oslo.rootwrap-6.3.1/PKG-INFO 2022-02-21 15:31:28.416208300 +0000 @@ -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