selinux/sandbox/start
Stephen Smalley 97bf196c89 Move policycoreutils/sandbox to sandbox.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-11-16 11:19:50 -05:00

14 lines
249 B
Python

#! /usr/bin/python -Es
try:
from subprocess import getstatusoutput
except ImportError:
from commands import getstatusoutput
import sys
rc = [-1, '']
try:
rc = getstatusoutput(sys.argv[1])
except:
pass
if rc[0] == 0:
print(rc[1])