History log of /external/selinux/policycoreutils/gui/polgengui.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
789d0ebbf9fa448b09917ccd0adff91d72e9f5c1 24-Jul-2015 Jason Zaman <jason@perfinion.com> policycoreutils: Fix PEP8 issues

When trying to get policycoreutils working in python3, I kept running
into TabErrors:

Traceback (most recent call last):
File "/usr/lib/python-exec/python3.3/semanage", line 27, in <module>
import seobject
File "/usr/lib64/python3.3/site-packages/seobject.py", line 154
context = "%s%s" % (filler, raw)
^
TabError: inconsistent use of tabs and spaces in indentation

Python3 is a lot stricter than python2 regarding whitespace and looks like
previous commits mixed the two. When fixing this, I took the chance to fix
other PEP8 style issues at the same time.

This commit was made using:
$ file $(find . -type f) | grep -i python | sed 's/:.*$//' > pyfiles
$ autopep8 --in-place --ignore=E501,E265 $(cat pyfiles)

The ignore E501 is long lines since there are many that would be wrapped
otherwise, and E265 is block comments that start with ## instead of just #.

Signed-off-by: Jason Zaman <jason@perfinion.com>
/external/selinux/policycoreutils/gui/polgengui.py
678de8fda224246f5c158686057cf51f5845c14e 11-Oct-2013 Dan Walsh <dwalsh@redhat.com> Change polgengui to use latest interfaces availabel in sepolicy toolchain.
/external/selinux/policycoreutils/gui/polgengui.py
e2de21c87243d0ffa60dd0edc806e873bfe1c8f5 18-May-2012 Dan Walsh <dwalsh@redhat.com> policycoreutils: gui: switch to use sepolicy

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
/external/selinux/policycoreutils/gui/polgengui.py
e4bbd7cfa8853d3bf81c9854e4e32313f3df19d6 13-Apr-2012 Dan Walsh <dwalsh@redhat.com> policycoreutils: gui: Checking in policy to support polgengui and sepolgen.

These are the tools that the Fedora team uses to build new policy. sepolgen is a
console app that will take an executable and generate policy based on the RPM
specification and using nm -D to analyze the application.

We have found it very useful for generating quick policy to get the policy writer
working quickly.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
/external/selinux/policycoreutils/gui/polgengui.py