selinux/policycoreutils/sandbox
Petr Lautrbach 2e60a2c80e policycoreutils: Don't use subprocess.getstatusoutput() in Python 2 code
The commit 7574a50f tried to improve compatibility with Python 3. It changed
the code to use subprocess.getstatusoutput() instead of
commands.getstatusoutput(). Unfortunately subprocess.getstatusoutput() is not
available in Python 2. This patch changes how getstatusoutput() is imported so
the code works on Python 2 and Python 3.

Fixes:
$ chcat -d something
Traceback (most recent call last):
  File "/usr/bin/chcat", line 432, in <module>
    sys.exit(chcat_replace(["s0"], cmds, login_ind))
  File "/usr/bin/chcat", line 271, in chcat_replace
    rc = subprocess.getstatusoutput(cmd)
AttributeError: 'module' object has no attribute 'getstatusoutput'

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2016-08-09 15:55:02 -04:00
..
.gitignore
Makefile Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
sandbox policycoreutils: gettext compat for py2 and 3 2016-08-05 12:57:08 -04:00
sandbox.5 policycoreutils: sandbox: move sandbox.conf.5 to just sandbox.5 2011-12-05 16:10:35 -05:00
sandbox.8 Update sandbox types in sandbox manual to match actual usage as I understand it (based on Fedora 23) 2016-06-17 18:24:35 +01:00
sandbox.conf policycoreutils: sandbox: Removing sandbox init script, should no longer be necessary 2012-03-28 08:39:08 -04:00
sandbox.config
sandbox.init policycoreutils: sandbox: Add back in . functions to sandbox.init script 2011-12-21 12:25:28 -05:00
sandboxX.sh Xephry now supports resizable flag 2013-10-24 13:58:39 -04:00
seunshare.8 Fix multiple spelling errors 2016-05-02 08:45:45 -04:00
seunshare.c Fix gcc -Wstrict-prototypes warnings 2014-10-02 09:56:38 -04:00
start policycoreutils: Don't use subprocess.getstatusoutput() in Python 2 code 2016-08-09 15:55:02 -04:00
test_sandbox.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00