From: Joerg Hoh <joerg@devone.org>
To: selinux@tycho.nsa.gov
Subject: Re: [PATCH] Warnings and 64bit
Date: Mon, 20 Oct 2003 19:56:11 +0200 [thread overview]
Message-ID: <20031020175611.GC3579@hydra.joerghoh.de> (raw)
In-Reply-To: <1066667672.22196.205.camel@moss-spartans.epoch.ncsc.mil>
On Mon, Oct 20, 2003 at 12:34:32PM -0400, Stephen Smalley wrote:
> On Wed, 2003-10-08 at 13:34, Joerg Hoh wrote:
>
> AFAIK,
>
> u32 i = 4;
> void *p = (void*)i;
> u32 j= (u32)p;
>
> will always work in practice. As long as a consistent behavior is
> applied for conversion, it will store and extract correctly, and you can
> certainly store 32bit values in 64bit variables. Endianness doesn't
> come into play, as we aren't crossing a machine boundary when passing
> this value, and checkpolicy does convert to a standard ordering (little
> endian) before writing to the binary policy file (and the kernel
> converts to the native ordering upon reading it).
Yes, I realized that after having written that mail.
>
> > These warnings soon becomes errors if you go off your 32bit plattform. The
> > unpatched policy loader simply crashed because of such errors.
>
> This is what we need to know more about in order to develop a correct
> and complete fix to the problem. Where does it crash?
I don't know exactly (maybe it even hasn't crashed, but just encounterd an
error with a missing semicolon in the policy file), we (Bastian Blank and
me) looked really soon in the code and discovered some things, which led to
our opinion that selinux was only tested on 32bit architectures. So we
didn't looked further on that error...
Joerg
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2003-10-20 17:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-04 23:18 [PATCH] Warnings and 64bit Joerg Hoh
2003-10-06 19:16 ` Stephen Smalley
2003-10-07 15:56 ` [selinux] " Magosányi Árpád
2003-10-07 19:29 ` Thorsten Kukuk
2003-10-07 20:16 ` Stephen Smalley
2003-10-07 21:31 ` Joerg Hoh
2003-10-08 13:17 ` Stephen Smalley
2003-10-08 13:39 ` James Morris
2003-10-08 17:34 ` Joerg Hoh
2003-10-20 16:34 ` Stephen Smalley
2003-10-20 17:56 ` Joerg Hoh [this message]
2003-10-20 18:47 ` Stephen Smalley
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=20031020175611.GC3579@hydra.joerghoh.de \
--to=joerg@devone.org \
--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 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.