On Fri, Jul 17, 2015 at 03:28:28AM -0400, Robert Kuska wrote: > > > ----- Original Message ----- > > From: "Jason Zaman" <jason@xxxxxxxxxxxxx> > > To: "Robert Kuska" <rkuska@xxxxxxxxxx> > > Cc: selinux@xxxxxxxxxxxxx > > Sent: Friday, July 17, 2015 8:58:02 AM > > Subject: Re: Python3 Support for Sepolgen module > > > > On Fri, Jul 17, 2015 at 02:39:08AM -0400, Robert Kuska wrote: > > > > How much progress do you have on porting policycoreutils? There are a > > > > lot of mismatched tabs/spaces in it which are causing problems in > > > > python3 and I havent gotten further yet. I started looking at fixing up > > > > these but if you've already done it then there is no point in me > > > > re-doing it. > > > > > > Sepolgen should be done. > > > > > > There are still scripts which we already got ported and will be here for a > > > review soon: > > > > $ rpm -ql policycoreutils-python | grep bin > > > > [±master ●▴] > > > /usr/bin/audit2allow > > > /usr/bin/audit2why > > > /usr/bin/chcat > > > /usr/bin/sandbox > > > /usr/bin/semodule_package > > > /usr/sbin/semanage > > > > > > Am I missing something? > > > > When I tried running semanage with python3, it needed a few more too: > > /usr/lib64/python*/site-packages/sepolicy/* > > /usr/lib64/python*/site-packages/seobject.py > > > > I look forward to testing the rest of your patches :) > > -- Jason > > > > I cc Petr in case he missed this mail. > > > Looking at policycoreutils-python3 it seems to me that sepolicy and seobject are already ported. Hmm I suspect thats not right cuz I kept getting errors when using it. When I looked through as well, I saw lots of places where print() needs to be fixed as well as "except Error, e" and quite a lot of mixed tabs and spaces. 2to3 can fix most of that automatically tho. As far as actual incompatibilities, I only saw a few issues with subcommand / process and str / unicode for internationalization so it should be pretty easy to fix up. -- Jason _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.