Previous topic

The cinder.openstack.common.rootwrap.filters Module

Next topic

The cinder.openstack.common.rpc.amqp Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.openstack.common.rootwrap.wrapper Module

exception FilterMatchNotExecutable(match=None, **kwargs)

Bases: exceptions.Exception

This exception is raised when a filter matched but no executable was found.

exception NoFilterMatched

Bases: exceptions.Exception

This exception is raised when no filter matched.

class RootwrapConfig(config)

Bases: object

build_filter(class_name, *args)

Returns a filter object of class class_name

load_filters(filters_path)

Load filters from a list of directories

match_filter(filters, userargs, exec_dirs=[])

Checks user command and arguments through command filters and returns the first matching filter. Raises NoFilterMatched if no filter matched. Raises FilterMatchNotExecutable if no executable was found for the best filter match.

setup_syslog(execname, facility, level)