diff options
author | William Pitcock <nenolod@dereferenced.org> | 2014-05-08 22:35:25 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2014-05-08 22:35:25 +0000 |
commit | cdb73f6762fafe7b0a861fd0467c82fc23878e7a (patch) | |
tree | 49333a7dc6a32670d732448f8649e3ea366ee9a9 /main/ipfw-grsec/ipfw-strict-uidgid.patch | |
parent | c385248c161e1099a11b1931a3630136272f5de4 (diff) | |
download | aports-cdb73f6762fafe7b0a861fd0467c82fc23878e7a.tar.bz2 aports-cdb73f6762fafe7b0a861fd0467c82fc23878e7a.tar.xz |
main/ipfw-grsec: update for 3.14
Diffstat (limited to 'main/ipfw-grsec/ipfw-strict-uidgid.patch')
-rw-r--r-- | main/ipfw-grsec/ipfw-strict-uidgid.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/ipfw-grsec/ipfw-strict-uidgid.patch b/main/ipfw-grsec/ipfw-strict-uidgid.patch index cf4376b956..ca4006aebd 100644 --- a/main/ipfw-grsec/ipfw-strict-uidgid.patch +++ b/main/ipfw-grsec/ipfw-strict-uidgid.patch @@ -8,8 +8,8 @@ +#ifdef CONFIG_UIDGID_STRICT_TYPE_CHECKS +#include <linux/uidgid.h> + -+#define KUID_TO_SUID(x) (__kuid_val(x)) -+#define KGID_TO_SGID(x) (__kgid_val(x)) ++#define KUID_TO_SUID(x) (x.val) ++#define KGID_TO_SGID(x) (x.val) +#define SUID_TO_KUID(x) (KUIDT_INIT(x)) +#define SGID_TO_KGID(x) (KGIDT_INIT(x)) + @@ -33,8 +33,8 @@ if (sk->sk_socket && sk->sk_socket->file) { - u->uid = sk->sk_socket->file->_CURR_UID; - u->gid = sk->sk_socket->file->_CURR_GID; -+ u->uid = KUID_TO_SUID(sk->sk_socket->file->_CURR_UID); -+ u->gid = KGID_TO_SGID(sk->sk_socket->file->_CURR_GID); ++ u->uid = KUID_TO_SUID(sk->sk_socket->file->_CURR_UID.val); ++ u->gid = KGID_TO_SGID(sk->sk_socket->file->_CURR_GID.val); } read_unlock_bh(&sk->sk_callback_lock); } else { |