summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/scriptlets/selinux_setup.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused variables in deployment scriptlets.Endi S. Dewata2016-04-281-10/+8
| | | | | | | | The unused rv instance variables in all deployment scriptlets have been removed. The spawn() and destroy() are now returning None instead of error code. If an error happens during execution the scriptlet will throw an exception which will be caught by pkispawn or pkidestroy and then displayed to the user.
* Fix flake8 / PEP 8 violationsChristian Heimes2016-01-251-6/+6
| | | | https://fedorahosted.org/pki/ticket/1738
* Remove #!python shebang from non-executablesChristian Heimes2016-01-191-1/+0
| | | | | | | | | A lot of Python files start with a #!/usr/bin/python shebang although the files are neither executables nor designed as scripts. Shebangs are only required for executable scripts. Without unnecessary shebangs it's a bit easier to track Python 3 porting.
* policycoreutils-python3 lacks sepolgen on Fedora 22Christian Heimes2015-08-171-2/+11
| | | | | | | | | Fedora 22's Python bindings for SELinux lacks sepolgen. The seobject package is available for Python 3 but can't be imported because it depends on sepolgen. The workaround makes it possible to test the Python 3 port on Fedora 22. It can be removed later once Fedora 23 is out.
* Py3 modernization: libmodernize.fixes.fix_importChristian Heimes2015-08-171-0/+1
| | | | | | | | | | | | | | Enforce absolute imports or explicit relative imports. Python 3 no longer supports implicit relative imports, that is unqualified imports from a module's directory. In order to load a module from the same directory inside a package, use from . import module The future feature 'from __future__ import absolute_import' ensures that pki uses absolute imports on Python 2, too. See https://www.python.org/dev/peps/pep-0328/
* Code cleanup - simplify pkispawn codeAde Lee2015-04-291-8/+2
| | | | | All subsystems are now tomcat instances. Conditionals based on whether the subsystem is a tomcat instance or not are no longer required.
* Remove Apache info from pkispawn and pkidestroyMatthew Harmsen2014-09-021-6/+0
| | | | - PKI TRAC Ticket #1077 - Consider removing [Apache] section from 'default.cfg'
* More formatting changesAde Lee2014-06-101-5/+8
| | | | | Improve the layout of strings in pkimessages and fix a couple more PEP 8 issues.
* Reformat scriptlets to be in line with PEP8Ade Lee2014-06-101-67/+101
| | | | Mostly handle pycharm warnings about code formatting.
* Modify master_dict to mdict to improve readabilityAde Lee2014-06-101-31/+31
| | | | | | Most of the install python scripts do not meet PEP8 including being less than 80 chars. Changing master_dict to mdict helps fix this and improves or at least does not degrade readability.
* Reorganized deployment tools.Endi S. Dewata2013-07-221-0/+204
The pkispawn and pkidestroy scripts have been moved into sbin folder. The Python deployment library and the scriptlets were moved into pki.server.deployment and pki.server.deployment.scriptlets packages, respectively.