Re: [PATCH 4/4] sepolicy: File labels used to be sorted in a man page

2017-07-27 Thread Stephen Smalley
On Thu, 2017-07-27 at 15:10 +0200, Petr Lautrbach wrote: > Signed-off-by: Petr Lautrbach Thanks, applied all 4 patches. > --- >  python/sepolicy/sepolicy/manpage.py | 1 + >  1 file changed, 1 insertion(+) > > diff --git a/python/sepolicy/sepolicy/manpage.py > b/python/sepolicy/sepolicy/manpage.

[PATCH 1/4] sepolicy: Fix minor typo in 'transition -s' test

2017-07-27 Thread Petr Lautrbach
Signed-off-by: Petr Lautrbach --- python/sepolicy/test_sepolicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sepolicy/test_sepolicy.py b/python/sepolicy/test_sepolicy.py index 304e56f6..6d60d6f6 100644 --- a/python/sepolicy/test_sepolicy.py +++ b/python/sepolicy/t

[PATCH 2/4] sepolicy: Fix syntax errors in 'manpage -w'

2017-07-27 Thread Petr Lautrbach
Fixes: File "python/sepolicy/sepolicy/manpage.py", line 373, in _gen_css print("%s has been created") % style_css TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' Signed-off-by: Petr Lautrbach --- python/sepolicy/sepolicy/manpage.py | 4 ++-- 1 file changed, 2 insertions(

[PATCH 4/4] sepolicy: File labels used to be sorted in a man page

2017-07-27 Thread Petr Lautrbach
Signed-off-by: Petr Lautrbach --- python/sepolicy/sepolicy/manpage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sepolicy/sepolicy/manpage.py b/python/sepolicy/sepolicy/manpage.py index 6df6f431..4d846364 100755 --- a/python/sepolicy/sepolicy/manpage.py +++ b/python/sepolicy/sepo

[PATCH 3/4] sepolicy: Make manpage and transition faster

2017-07-27 Thread Petr Lautrbach
SETools4 and Python 3 versions of map() and filter() uses iterators to generates query results and these iterators can't be imply re-used. It makes manpage and transitions operations really slow as they do lot of queries. This patch changes it in the way that it caches results in lists for all typ

Re: [PATCH] libselinux: fix thread safety issues with lookup_common()

2017-07-27 Thread Stephen Smalley
On Wed, 2017-07-26 at 13:02 -0700, Tom Cherry via Selinux wrote: > There are two problems with lookup_common() and therefore > selabel_lookup() and related functions that this patch fixes: > > 1) A race with the lazy compilation of regexes.  Since the struct > regex_data is allocated and assigned