compat.h 648 B

12345678910111213141516171819202122232425
  1. #ifndef _COMPAT_H_
  2. #define _COMPAT_H_
  3. /*
  4. * Even if AppArmor isn't enabled, it still has different prototypes.
  5. * Add more distro/version pairs here to declare which has AppArmor applied.
  6. */
  7. #if defined(CONFIG_SUSE_KERNEL)
  8. # if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
  9. # define REMOVE_SUID_PATH 1
  10. # endif
  11. #endif
  12. /*
  13. * catch any other distros that have patched in apparmor. This isn't
  14. * 100% reliable because it won't catch people that hand compile their
  15. * own distro kernels without apparmor compiled in. But, it is better
  16. * than nothing.
  17. */
  18. #ifdef CONFIG_SECURITY_APPARMOR
  19. # define REMOVE_SUID_PATH 1
  20. #endif
  21. #endif /* _COMPAT_H_ */