Re: setools4 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/23/2016 07:07 PM, Stephen Smalley wrote:
> On 09/22/2016 11:17 AM, Jason Zaman wrote:
>> Hi all,
>>
>> I finally got everything updated to use setools4. The most complicated parts
>> were sepolicy.search() and sepolicy.info() which were largely undocumented. I
>> dumped and diff'd the output from the old and new code so am fairly confident
>> that they are the same (barring some issues that setools3 appears to have with
>> cil). I also changed several places to just use setools directly, having the
>> indirection through search() mostly just complicates and slows things down.
>>
>> The first patch is just cleanup. Next imports and initializes setools.
>> Patches 3-4 update a lot of the users of search() and info() to work with the next
>> changes.
>> Patches 5-6 update search() and info() themselves and the last drops the C
>> module completely
>>
>> I dont know the status of setools4 on fedora (someone else will have to update
>> the README if needed) or others but I've added it masked in gentoo a fair while
>> ago. Once this patchset is merged we can finally get rid of setools3, its been
>> half-broken for a while now.
> 
> AFAICT, setools4 is not packaged for Fedora yet.

I haven't updated it for some time but you can try

https://copr.fedorainfracloud.org/coprs/plautrba/setools4/

I would like setools4 to be packaged for Fedora 26. The conflict among
setools 3 and setools 4 needs to be resolved first. The idea is to have
legacy setools3-libs and setools4 with the tools.

Petr

> $ git clone https://github.com/TresysTechnology/setools
> $ cd setools
> $ git checkout 4.0
> $ sudo python setup.py install
> $ sesearch
> Traceback (most recent call last):
>   File "/usr/bin/sesearch", line 4, in <module>
>     __import__('pkg_resources').run_script('setools==4.0.1', 'sesearch')
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 724, in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 1657, in run_script
>     exec(script_code, namespace, namespace)
>   File
> "/usr/lib64/python2.7/site-packages/setools-4.0.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/sesearch",
> line 21, in <module>
> 
>   File "build/bdist.linux-x86_64/egg/setools/__init__.py", line 30, in
> <module>
>   File "build/bdist.linux-x86_64/egg/setools/policyrep/__init__.py",
> line 34, in <module>
> ImportError: cannot import name qpol
> 
> What I am doing wrong?
> 

_______________________________________________
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.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux