libsemanage getpwent and nss-systemd incompability

2018-07-09 Thread Nicolas Iooss
Hello, While testing a systemd update on Arch Linux, I encountered the following message (in a Vagrant virtual machine): # semanage fcontext -m -s sysadm_u -t user_home_t '/vagrant(/.*)?' libsemanage.get_home_dirs: Error while fetching users. Returning list so far. A quick debugging of get_home

Re: [PATCH] python/semanage: Fix logger class definition

2018-07-09 Thread Nicolas Iooss
On Mon, Jul 9, 2018 at 8:29 PM, Vit Mojzis wrote: > > Test if audit module is enabled so that logger class is defined > correctly. > > Fixes: > "semanage fcontext -l" fails with "OSError: Protocol not supported" when > booting with audit=0 > > Signed-off-by: Vit Mojzis > --- > python/semanage/se

[PATCH] python/semanage: Fix logger class definition

2018-07-09 Thread Vit Mojzis
Test if audit module is enabled so that logger class is defined correctly. Fixes: "semanage fcontext -l" fails with "OSError: Protocol not supported" when booting with audit=0 Signed-off-by: Vit Mojzis --- python/semanage/seobject.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/