4 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,26)
5 #define trylock_page(page) (!TestSetPageLocked(page))
8 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,27)
9 static inline struct dentry *d_obtain_alias(struct inode *inode)
16 return ERR_CAST(inode);
18 d = d_alloc_anon(inode);
26 * Even if AppArmor isn't enabled, it still has different prototypes.
27 * Add more distro/version pairs here to declare which has AppArmor applied.
29 #if defined(CONFIG_SUSE_KERNEL)
30 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
31 # define REMOVE_SUID_PATH 1
36 * catch any other distros that have patched in apparmor. This isn't
37 * 100% reliable because it won't catch people that hand compile their
38 * own distro kernels without apparmor compiled in. But, it is better
41 #ifdef CONFIG_SECURITY_APPARMOR
42 # define REMOVE_SUID_PATH 1
45 #endif /* _COMPAT_H_ */