cboltz

cboltz

rewrite YaST2 AppArmor

an idea by cboltz

The YaST2 AppArmor module is still based on the Immunix::* perl modules that are deprecated upstream and therefore causes some maintenance "fun". Upstream AppArmor utils were rewritten in python. The idea is to rewrite the YaST2 AppArmor module to use the python modules or JSON interfaces.

Updated about 5 years ago. 1 hackers ♥️. Has no hacker: grab it!

AppArmor utils: rewrite more rule types into classes

an invention by cboltz

While the python-based AppArmor utils (aa-logprof etc.) are much easier to understand and maintain than the old perl code, there are still some terribly long functions like parseprofiledata() in aa.py that are not too easy to understand. Also, using hasher() (a recursive array) as storage can have some strange side effects. Another problem is that test coverage isn't too good, especially for the bigger functions. I already wrote the CapabilityRule and CapabilityRuleset classes (and also the BaseRule and BaseRuleset classes) some months ago, and changed the code to use those classes. This code is already in upstream bzr.

Updated about 5 years ago. 1 hackers ♥️.
2
1
7
7

Looking for projects around:

Nothing at the moment

Activity

  • about 3 years ago: cboltz liked Learn AppArmor
  • about 7 years ago: cboltz liked Refresh connect.opensuse.org
  • almost 9 years ago: cboltz liked Create working AppArmor profile for Chromium on openSUSE 13.2
  • about 9 years ago: cboltz added keyword "apparmor" to AppArmor utils: rewrite more rule types into classes
  • about 9 years ago: cboltz added keyword "python" to AppArmor utils: rewrite more rule types into classes
  • about 9 years ago: cboltz added keyword "tests" to AppArmor utils: rewrite more rule types into classes
  • about 9 years ago: cboltz liked AppArmor utils: rewrite more rule types into classes
  • about 9 years ago: cboltz started AppArmor utils: rewrite more rule types into classes
  • about 9 years ago: cboltz originated AppArmor utils: rewrite more rule types into classes
  • over 9 years ago: cboltz added keyword "apparmor" to rewrite YaST2 AppArmor
  • over 9 years ago: cboltz added keyword "yast" to rewrite YaST2 AppArmor
  • over 9 years ago: cboltz liked rewrite YaST2 AppArmor
  • over 9 years ago: cboltz originated rewrite YaST2 AppArmor
  • over 10 years ago: cboltz liked Bug reporting GUI tool with template support
  • over 10 years ago: cboltz liked openSUSE Landing Page Prototype