mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: James Morris <jmorris@redhat.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, sds@epoch.ncsc.mil,
	selinux@tycho.nsa.gov
Subject: Re: [SELINUX] Event notifications via Netlink
Date: Wed, 18 Feb 2004 12:55:45 -0800	[thread overview]
Message-ID: <20040218125545.6c499296.davem@redhat.com> (raw)
In-Reply-To: <Xine.LNX.4.44.0402181143550.26718-100000@thoron.boston.redhat.com>

On Wed, 18 Feb 2004 11:52:31 -0500 (EST)
James Morris <jmorris@redhat.com> wrote:

> +/* Message structures */
> +struct selnl_msg_setenforce {
> +	u_int32_t	val;
> +};
 ...
> +	case SELNL_MSG_SETENFORCE: {
> +		struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh);
> +		
> +		memset(msg, 0, len);
> +		msg->val = *((int *)data);
> +		break;
> +	}

I think there's a "u32" at 'data' not an "int".

  reply	other threads:[~2004-02-18 20:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-18 16:52 James Morris
2004-02-18 20:55 ` David S. Miller [this message]
2004-02-18 21:22   ` James Morris
2004-02-18 22:43     ` Chris Wright
2004-02-18 23:47       ` James Morris
2004-02-18 23:58         ` Chris Wright
2004-02-19  0:26     ` David S. Miller

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=20040218125545.6c499296.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=akpm@osdl.org \
    --cc=jmorris@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sds@epoch.ncsc.mil \
    --cc=selinux@tycho.nsa.gov \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®