Giter VIP home page Giter VIP logo

sepwriter's Introduction

A simple sepolicy denial resolver that will read your denials from a file and resolves and puts them in the respective files.

On basis of my understanding i have done the separation as follows:

system/sepolicy/private in sepolicy/private

system/sepolicy/vendor  in sepolicy/vendor

Remaining  in sepolicy/public

The list for the same has been created using the categ.py pressent in the git

#HowTo Use

  1. from your log create a denials.txt file with only denial If on linux you can use this:

    cat PATH_TO_LOG.txt | grep avc: > denials.txt
    
  2. Put the denials.txt in your device tree.

  3. If treble device Place sepwriter_v.py in the folder of your dtree.

  4. Run the code by executing the following command:

    python3 sepwriter_v.py
    

(or)

  1. If non treble Place sepwriter.py in the folder of your dtree.
  2. Run the code by executing the following command:
    python3 sepwriter.py
    

(or) 3) If your device tree doesnt have folders like sepolicy/public sepolicy/private etc copy the sepwriter_simple.py in the folder of your dtree. 4) Run the code by executing the following command:

python3 sepwriter_simple.py

All your denials should be resolved:)

An example of how the code resolves your denials is provided in dtree folder.(Check Readme there for further info)

Any suggestions would be appreciated and helpful.

sepwriter's People

Contributors

vjspranav avatar tailanbr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.