command (no filter matched)

Bug #1566019 reported by Serguei Bezverkhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.rootwrap
Expired
Undecided
Unassigned

Bug Description

I need to run rsync command as a root using rootwrap:

Here is the config I have:

rootwrap.conf
[DEFAULT]
filters_path=/etc/swift/rootwrap.d,/usr/share/swift/rootwrap
exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin
use_syslog=False
syslog_log_facility=syslog
syslog_log_level=INFO
[xenapi]
xenapi_connection_url=<None>
xenapi_connection_username=root
xenapi_connection_password=<None>

in rootwrap.d I have:

rsync.filters
[Filters]
rsync: CommandFilter, rsync, root
rsync_path: CommandFilter, /usr/bin/rsync, root

When I try execute command:

Running command: '/var/lib/kolla/venv/bin/swift-rootwrap /etc/swift/rootwrap.conf /usr/bin/rsync'
/var/lib/kolla/venv/bin/swift-rootwrap: Unauthorized command: /usr/bin/rsync (no filter matched)

Appreciate any help with this issue.

Revision history for this message
Ben Nemec (bnemec) wrote :

Is rsync installed? I seem to recall seeing a bug where if the underlying command was missing it would raise a misleading "no filter matched" error.

Changed in oslo.rootwrap:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.rootwrap because there has been no activity for 60 days.]

Changed in oslo.rootwrap:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.