summaryrefslogtreecommitdiffstats
path: root/openstack/common/rootwrap
Commit message (Collapse)AuthorAgeFilesLines
* Enable hacking H404 test.Dina Belova2013-06-111-7/+5
| | | | | | H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
* Update KillFilter to stop at '\0' for readlink() function.Yufang Zhang2013-05-151-0/+4
| | | | | | | | | | | | | Python's readlink() implementation doesn't stop at '\0' when reading file path. Thus after dnsmasq upgrade, it may return something like '/usr/sbin/dnsmasq\03453 (deleted)', while C's or Shell's readlink() return '/usr/sbin/dnsmasq'. This patch fixes this problem by cutting the readlink() results with '\0', so that KillFilter could get correct path. Bug 1179793 Change-Id: I7354941e0508e019c8c9b63b87ad39f52ccb51ca
* Stylistic improvements from quantum-rootwrapThierry Carrez2013-05-092-15/+13
| | | | | | | | | | | | As part of the convergence effort between oslo-rootwrap and quantum-rootwrap, import stylistic improvements introduced in quantum-rootwrap, like: - HACKING-compliant docstrings - More elegant return construct from match_filter in filters.py - Remove overridden use of filters in wrapper.py Change-Id: I49a97271b1c385feb25adf4f62add5c71962b5dd
* Merge "Revert common logging use in rootwrap"Jenkins2013-04-221-6/+3
|\
| * Revert common logging use in rootwrapThierry Carrez2013-04-221-6/+3
| | | | | | | | | | | | | | | | | | | | Revert recent plug of common logging into rootwrap, as it breaks rootwrap logging. Rootwrap does not make use of oslo logging and oslo config in order to reduce the surface of code run as root. See https://review.openstack.org/#/c/26468/ for discussion. Change-Id: I276ade164a902d091f9aafab79bbd4cc189588eb
* | Use print_function __future__ importMark McLoughlin2013-04-221-0/+2
| | | | | | | | | | | | | | | | | | Rather than continuing to use the old print statement, use the actual print function introduced in python 2.6. See: http://docs.python.org/2/whatsnew/2.6.html#pep-3105-print-as-a-function Change-Id: I059d982d60e13f13e1caf49509c0fe0b18eda723
* | Improve Python 3.x compatibilityDirk Mueller2013-04-221-1/+1
|/ | | | | | | Mechanical translation of deprecated constructs to 3.x compatible variants. Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9
* Replaces standard logging with common loggingZhongyue Luo2013-04-091-3/+6
| | | | | | | Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I0ad12d7e6e623657c40659aca4148439cd03d3fa
* Move bin/ scripts to entrypoints.Monty Taylor2013-04-071-0/+128
| | | | | | | Instead of propogating more bin scripts, migrate these to be things that can be consumed as entrypoints. Change-Id: Ic01e0f16fe9e7634708fbb51499ccea3f4f40d63
* Add PathFilter to rootwrap.Roman Podolyaka2013-04-011-0/+46
| | | | | | | | | | PathFilter is a type of filter that allows to check if path arguments of a command resolve to file system paths within given directories. Fixes bug 1098568. Change-Id: Ie2686ad2ff114075c6d8d804031b6e3fa60a43ca
* update OpenStack, LLC to OpenStack FoundationMark McClain2013-03-133-3/+3
| | | | | | | | | | fixes bug 1154745 The previous update (https://review.openstack.org/#/c/24103/) missed header files that contained "OpenStack, LLC". This change corrects the missed files to reflect the OpenStack Foundation. Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
* Fix pep8 E125 errors.Monty Taylor2013-01-111-3/+3
| | | | | | Caesar's wife must be above reproach. Change-Id: Iac85a57e71d403360f1567c07c8699057f0772fb
* Move rootwrap code to openstack.commonThierry Carrez2012-12-203-0/+345
Copies current nova-rootwrap code to openstack.common, so that it can be reused by Cinder and Quantum. Implements blueprint common-rootwrap. Before it can be used in projects, update.py needs to grow the capability to deploy files in bin/ and etc/, as well as replacing a placeholder text by the destination project name in source files and binary names. In this proposed version, the placeholder text is "oslo". Change-Id: I8655d5b3cccacd1cc2225aa539339fb478615422