Results 1 to 5 of 5

Thread: [SOLVED] Patching Apparmor and Grsecurity together, is it possible?

  1. #1
    Join Date
    Aug 2007
    Location
    Kottawa, Sri Lanka
    Beans
    7,387
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] Patching Apparmor and Grsecurity together, is it possible?

    I was wondering if there was any way one could patch Apparmor onto a kernel and then patch Grsecurity on top of it(or the other way around, I don't really care), the fact is that I can easily patch Apparmor or Grsecurity seperately, but when it comes to patching them together I always get patching errors and I am unable to proceed further.
    Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this.
    I am an experimenter, give me the most stable OS and I can make it unstable in a few hours.

    C == seriously fast == FTW!

  2. #2
    Join Date
    Apr 2008
    Beans
    5

    Re: Patching Apparmor and Grsecurity together, is it possible?

    Quote Originally Posted by PmDematagoda View Post
    I was wondering if there was any way one could patch Apparmor onto a kernel and then patch Grsecurity on top of it(or the other way around, I don't really care), the fact is that I can easily patch Apparmor or Grsecurity seperately, but when it comes to patching them together I always get patching errors and I am unable to proceed further.
    Why would you want to do that ? Can you please share your thoughts?

    I'm asking you this because AppArmor and Grsecurity do almost the same thing, they do ACL approx the same way using policy files, except for grsecurity which in my personal belief is much better just becuase of the nefty features in addition to ACL, like hiding processes, securing the chroot jail etc... Grsecurity should suit your needs if you configure it well, just watch out for PAX it could be a little too violent for some applications.

    Cookie

  3. #3
    Join Date
    Aug 2007
    Location
    Kottawa, Sri Lanka
    Beans
    7,387
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Patching Apparmor and Grsecurity together, is it possible?

    Quote Originally Posted by cookie971 View Post
    Why would you want to do that ? Can you please share your thoughts?

    I'm asking you this because AppArmor and Grsecurity do almost the same thing, they do ACL approx the same way using policy files, except for grsecurity which in my personal belief is much better just becuase of the nefty features in addition to ACL, like hiding processes, securing the chroot jail etc... Grsecurity should suit your needs if you configure it well, just watch out for PAX it could be a little too violent for some applications.

    Cookie
    Thanks for that information cookie971, I talked to a person earlier who had experience with such systems and he told me that it was either Grsec or apparmor and not both together. The last time I used Grsec it was without PAX and it worked, but after I turned PAX on and turned some features on then it all went wrong, so I have to get some more experience in PAX.
    Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this.
    I am an experimenter, give me the most stable OS and I can make it unstable in a few hours.

    C == seriously fast == FTW!

  4. #4
    Join Date
    Sep 2007
    Beans
    75

    Re: [SOLVED] Patching Apparmor and Grsecurity together, is it possible?

    PaX alone is the reason why Grsecurity provides more overall security than AppArmor. Also, Grsecurity has a superb RBAC system -- I don't have much experience with AppArmor but I can't imagine it beating Grsecurity in this area.

    Unfortunately, the downloadable Grsecurity documentation is useless, but the help text associated with the kernel config options is very useful in deciding what to turn on. I think you press shift+? while configuring the kernel to display them.

    PaX will sometimes break legitimate applications, but there is a utility called chpax (I think the name has changed now though) that allows you to turn off PaX on a per-binary basis.

    The latest grsec "test patch" is for 2.6.25.7, but I consider them stable releases. The reason why they aren't "stable" is because there are still some bugs with PaX on 64-bit SMP kernels.
    Last edited by /etc/init.d/; June 20th, 2008 at 12:56 PM.

  5. #5
    Join Date
    Aug 2007
    Location
    Kottawa, Sri Lanka
    Beans
    7,387
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [SOLVED] Patching Apparmor and Grsecurity together, is it possible?

    You can see the help text in config options by default when using xconfig to configure the kernel(it's in a section of the window), which is a reason why I like it so much.

    I'll give chpax(or whatever it's name is) a try as well, one thing about AppArmor, it is really easy to use, just know the basics and have a good example profile at hand and it becomes very easy to manage and use(oh, and keep an eye on the audit logs).
    Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this.
    I am an experimenter, give me the most stable OS and I can make it unstable in a few hours.

    C == seriously fast == FTW!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •