Sellcodes
  • Browse
    • Login
    • Sign Up
  • Users are requesting the codes...
  • See all requests

Not able to run audit2allow in android source code

The folder location of audit2allow python script is external/selinux/prebuilts/bin/audit2allow

But when I try to run the script, I get this error:

Traceback (most recent call last):
File "/home/shobhit/Desktop/Code/aosp/msm8909_android/external/selinux/policycoreutils/audit2allow/audit2allow", line 24, in
import sepolgen.audit as audit
File "/home/shobhit/Desktop/Code/aosp/msm8909_android/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/audit.py", line 20, in
import refpolicy
File "/home/shobhit/Desktop/Code/aosp/msm8909_android/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/refpolicy.py", line 22, in
import selinux
File "/home/shobhit/Desktop/Code/aosp/msm8909_android/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/selinux/__init__.py", line 28, in
_selinux = swig_import_helper()
File "/home/shobhit/Desktop/Code/aosp/msm8909_android/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/selinux/__init__.py", line 24, in swig_import_helper
_mod = imp.load_module('_selinux', fp, pathname, description)
ImportError: /home/shobhit/Desktop/Code/aosp/msm8909_android/prebuilts/python/linux-x86/2.7.5/

link-img

1

# Users who requested
the code (so far)

link-img

$5

Suggested price from buyers
at which they’d buy

link-img

$5

Potential revenues from requesters (actual
revenues can be significantly higher)

Time of last request:on May 3, 2018

Tags:android, python, ndk

Sellers

If you own such codes, please set up an offer and then invite users to it by clicking on «Invite to offer».

Invite to offer

Buyers

If you’re also be willing to buy those codes then click on «I’d also buy it» (no commitment to buy, but please only click when you’re serious about it).

I'd also buy it!

Tell people about Sellcodes and get 20-40% on every resulting sale!

Spread the word
  • PARTICIPATE
  • Buy
  • Offer
  • Share
  • LEARN
  • About
  • Blog
  • FAQ
  • CONNECT
  • Twitter
  • Facebook
  • Contact
  • LEGAL
  • Terms
  • Privacy
  • © 2025 Sellcodes
Log in to your Sellcodes account
Keep me logged in Forgot your password?
Looking to create an account?
Sign up for Sellcodes
By creating an account you agree to our Terms Of Use and Privacy Policy
Did you mean to Login?