diff -pruN 6.3.0-2/debian/changelog 6.3.1-2/debian/changelog
--- 6.3.0-2/debian/changelog	2021-09-29 14:55:36.000000000 +0000
+++ 6.3.1-2/debian/changelog	2022-03-25 08:00:36.000000000 +0000
@@ -1,3 +1,16 @@
+python-oslo.rootwrap (6.3.1-2) unstable; urgency=medium
+
+  * Uploading to unstable.
+  * Add autopkgtest.
+
+ -- Thomas Goirand <zigo@debian.org>  Fri, 25 Mar 2022 09:00:36 +0100
+
+python-oslo.rootwrap (6.3.1-1) experimental; urgency=medium
+
+  * New upstream release.
+
+ -- Thomas Goirand <zigo@debian.org>  Tue, 22 Feb 2022 09:28:36 +0100
+
 python-oslo.rootwrap (6.3.0-2) unstable; urgency=medium
 
   * Uploading to unstable.
diff -pruN 6.3.0-2/debian/tests/control 6.3.1-2/debian/tests/control
--- 6.3.0-2/debian/tests/control	1970-01-01 00:00:00.000000000 +0000
+++ 6.3.1-2/debian/tests/control	2022-03-25 08:00:36.000000000 +0000
@@ -0,0 +1,5 @@
+Tests: unittests
+Depends:
+ @,
+ @builddeps@,
+Restrictions: allow-stderr needs-root
diff -pruN 6.3.0-2/debian/tests/unittests 6.3.1-2/debian/tests/unittests
--- 6.3.0-2/debian/tests/unittests	1970-01-01 00:00:00.000000000 +0000
+++ 6.3.1-2/debian/tests/unittests	2022-03-25 08:00:36.000000000 +0000
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+pkgos-dh_auto_test --no-py2 'oslo_rootwrap\.tests\.(?!(.*test_functional.*))'
diff -pruN 6.3.0-2/oslo_rootwrap/filters.py 6.3.1-2/oslo_rootwrap/filters.py
--- 6.3.0-2/oslo_rootwrap/filters.py	2021-05-05 02:01:58.000000000 +0000
+++ 6.3.1-2/oslo_rootwrap/filters.py	2022-01-13 13:45:09.000000000 +0000
@@ -74,7 +74,11 @@ class CommandFilter(object):
 
     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 -pruN 6.3.0-2/oslo_rootwrap/tests/test_functional.py 6.3.1-2/oslo_rootwrap/tests/test_functional.py
--- 6.3.0-2/oslo_rootwrap/tests/test_functional.py	2021-05-05 02:01:58.000000000 +0000
+++ 6.3.1-2/oslo_rootwrap/tests/test_functional.py	2022-01-13 13:45:09.000000000 +0000
@@ -89,6 +89,14 @@ later_install_cmd: CommandFilter, %s, ro
         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)
