OwlCyberDefense / setools

setools has moved to https://github.com/SELinuxProject/setools
Other
91 stars 34 forks source link

Make "search -A" output reproducible #156

Closed fishilico closed 7 years ago

fishilico commented 7 years ago

With Python 3, the values in a set are randomly organised. Therefore the representation of the set of permissions of an allow/dontaudit/... statement is not stable across execution.

Sort the permissions when converting them as strings.