All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dash Four <mr.dash.four@googlemail.com>
To: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Cc: Jan Engelhardt <jengelh@inai.de>
Subject: Re: xtables-addons compile error (DNETMAP)
Date: Fri, 19 Apr 2013 16:22:21 +0100	[thread overview]
Message-ID: <5171612D.9050506@googlemail.com> (raw)
In-Reply-To: <51707576.5010505@googlemail.com>



Dash Four wrote:
> During build I get the following error:
>
> xt_DNETMAP.c: In function 'dnetmap_tg_check':
> xt_DNETMAP.c:331: error: incompatible types when assigning to type 
> 'kuid_t' from type 'unsigned int'
> xt_DNETMAP.c:332: error: incompatible types when assigning to type 
> 'kgid_t' from type 'unsigned int'
> xt_DNETMAP.c:344: error: incompatible types when assigning to type 
> 'kuid_t' from type 'unsigned int'
> xt_DNETMAP.c:345: error: incompatible types when assigning to type 
> 'kgid_t' from type 'unsigned int'
>
> The target kernel is 3.8.7. Any idea what could cause this?
The above error (and this is not confined to just DNETMAP) seems to be 
caused by CONFIG_UIDGID_STRICT_TYPE_CHECKS. When this is set, together 
with CONFIG_PROC_FS also being enabled in the kernel, the uid and gid 
fields of proc_dir_entry (proc_fs.h) are no longer "unsigned int", but a 
struct types, so they should be accessed/set with uid.val and gid.val 
instead - at least that is how I managed to get it work. I'll attach a 
patch if there is interest in fixing this bug - just let me know.

      reply	other threads:[~2013-04-19 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 22:36 xtables-addons compile error (DNETMAP) Dash Four
2013-04-19 15:22 ` Dash Four [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5171612D.9050506@googlemail.com \
    --to=mr.dash.four@googlemail.com \
    --cc=jengelh@inai.de \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.