Skip to contentSkip to conversation

sparc support

DISCUSSION Joshua Brindle 3 participants 3 messages May 28, 2003 – May 31, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

russel said one of his friends started a sparc port, i was wondering if anything had been done on this, particularly i'm interested in the wrapper.c for sparc since i know nothing of registers or kernel hacking, etc.

I have a blade 2000 that i'd love to get selinux working on...

if anyone knows any information I'd love to hear :)

Thanks!

Joshua Brindle
UNIX Administrator
Southern Nazarene University

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · Joshua Brindle

russel said one of his friends started a sparc port, i was wondering if anything had been done on this, particularly i'm interested in the wrapper.c for sparc since i know nothing of registers or kernel hacking, etc.

That'll be me. It's actually a port to sparc64, since I don't have access to a plain old sparc processor at the moment. It doesn't work yet, and I've got stuck, so I haven't done any work on it for a while.

You can download a patch for what I've done so far, here:

http://leapster.org/linux/lsm-sparc64-2.4.20-patch.3

I don't really know what I'm doing, however, so don't expect to see anything sane there ;)

Basically I've used the i386 patch & Russell's arm port as a guide - so now, it compiles and boots fine, but it doesn't seem to do what it's supposed to do, and I didn't know what to do next.

And I'm sure I've screwed up the part for the 32-bit userspace.

Cheers,

Paul

Signature · 7 lines
Paul Dwerryhouse						| PGP Key ID: 
Amsterdam, The Netherlands (X) <-> Melbourne, Australia ( )	| 0x6B91B584

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 3 lines · On Thu, 29 May 2003 08:25:28 +0200 Paul Dwerryhouse <[email protected]>…

That'll be me. It's actually a port to sparc64, since I don't have access to a plain old sparc processor at the moment. It doesn't work yet, and I've got stuck, so I haven't done any work on it for a while.

[...]

Quoted 1 line

Basically I've used the i386 patch & Russell's arm port as a guide

Another example you can look at is the arm version from NSA's site, in particular the linux-2.4.19-rmk4-pxa2-hh3-lsm1-arm.patch which contains the arm-specific code. That implementation is slightly different from Russell's and does not contain his 2.4.20 backport. I doubt it will help much in your case, but it's another data point.

Quoted 1 line

And I'm sure I've screwed up the part for the 32-bit userspace.

I seem to recall from LKML that the 32-64 translation issue on Sparc64 is one of the reasons that sys_security was rejected for 2.5. I don't know enough about Sparc64 Linux to recommend a workaround. Here's the thread:

http://www.ussg.iu.edu/hypermail/linux/kernel/0210.2/0854.html

-Dave Dodge/[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.