~ubuntu-branches/ubuntu/quantal/nova/quantal-security

« back to all changes in this revision

Viewing changes to nova/rootwrap/compute.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman
  • Date: 2012-06-22 12:39:57 UTC
  • mfrom: (1.1.57)
  • Revision ID: package-import@ubuntu.com-20120622123957-hbzwg84nt9rqwg8r
Tags: 2012.2~f2~20120621.14517-0ubuntu1
[ Chuck Short ]
* New upstream version.

[ Adam Gandelman ]
* debian/rules: Temporarily disable test suite while blocking
  tests are investigated. 
* debian/patches/kombu_tests_timeout.patch: Dropped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#    License for the specific language governing permissions and limitations
16
16
#    under the License.
17
17
 
18
 
 
19
18
from nova.rootwrap import filters
20
19
 
 
20
 
21
21
filterlist = [
22
22
    # nova/virt/disk/mount.py: 'kpartx', '-a', device
23
23
    # nova/virt/disk/mount.py: 'kpartx', '-d', device
100
100
    # nova/virt/libvirt/vif.py: 'tunctl', '-b', '-t', dev
101
101
    # nova/network/linux_net.py: 'tunctl', '-b', '-t', dev
102
102
    filters.CommandFilter("/usr/sbin/tunctl", "root"),
 
103
    filters.CommandFilter("/bin/tunctl", "root"),
103
104
 
104
105
    # nova/virt/libvirt/vif.py: 'ovs-vsctl', ...
105
106
    # nova/virt/libvirt/vif.py: 'ovs-vsctl', 'del-port', ...
118
119
    # nova/virt/xenapi/vm_utils.py: "parted", "--script", ...
119
120
    # nova/virt/xenapi/vm_utils.py: 'parted', '--script', dev_path, ..*.
120
121
    filters.CommandFilter("/sbin/parted", "root"),
 
122
    filters.CommandFilter("/usr/sbin/parted", "root"),
121
123
 
122
124
    # nova/virt/xenapi/vm_utils.py: fdisk %(dev_path)s
123
125
    filters.CommandFilter("/sbin/fdisk", "root"),
130
132
 
131
133
    # nova/network/linux_net.py: 'ip[6]tables-save' % (cmd,), '-t', ...
132
134
    filters.CommandFilter("/sbin/iptables-save", "root"),
 
135
    filters.CommandFilter("/usr/sbin/iptables-save", "root"),
133
136
    filters.CommandFilter("/sbin/ip6tables-save", "root"),
 
137
    filters.CommandFilter("/usr/sbin/ip6tables-save", "root"),
134
138
 
135
139
    # nova/network/linux_net.py: 'ip[6]tables-restore' % (cmd,)
136
140
    filters.CommandFilter("/sbin/iptables-restore", "root"),
 
141
    filters.CommandFilter("/usr/sbin/iptables-restore", "root"),
137
142
    filters.CommandFilter("/sbin/ip6tables-restore", "root"),
 
143
    filters.CommandFilter("/usr/sbin/ip6tables-restore", "root"),
138
144
 
139
145
    # nova/network/linux_net.py: 'arping', '-U', floating_ip, '-A', '-I', ...
140
146
    # nova/network/linux_net.py: 'arping', '-U', network_ref['dhcp_server'],..
141
147
    filters.CommandFilter("/usr/bin/arping", "root"),
 
148
    filters.CommandFilter("/sbin/arping", "root"),
142
149
 
143
150
    # nova/network/linux_net.py: 'route', '-n'
144
151
    # nova/network/linux_net.py: 'route', 'del', 'default', 'gw'
188
195
    # nova/virt/libvirt/connection.py:
189
196
    filters.ReadFileFilter("/etc/iscsi/initiatorname.iscsi"),
190
197
 
 
198
    # nova/virt/libvirt/connection.py:
 
199
    filters.CommandFilter("/sbin/lvremove", "root"),
 
200
 
 
201
    # nova/virt/libvirt/utils.py:
 
202
    filters.CommandFilter("/sbin/lvcreate", "root"),
 
203
 
 
204
    # nova/virt/libvirt/utils.py:
 
205
    filters.CommandFilter("/sbin/vgs", "root")
 
206
 
191
207
    ]