All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Advice on bringing up SE Linux
@ 2005-02-01 20:51 Villalovos, John L
  2005-02-03  7:20 ` Russell Coker
  0 siblings, 1 reply; 10+ messages in thread
From: Villalovos, John L @ 2005-02-01 20:51 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

Stephen Smalley wrote:
> Actually, cat is quite likely to fail, as it likely tries to read and
> write the file in chunks, whereas the kernel wants the entire policy
> pushed in a single transaction.  load_policy is what you want.
> 
> /sbin/init is what normally loads the policy during startup.  Are you
> using the modified /sbin/init (included in Fedora)?  What is in your
> /etc/selinux/config?

Okay.  We are using Busybox for the init.  So it does not have the SE
Linux stuff in it.

I will try to get load_policy compiled for Xscale and give it a shot.

Thanks,
John


--
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.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Advice on bringing up SE Linux
@ 2005-02-03 21:49 Villalovos, John L
  0 siblings, 0 replies; 10+ messages in thread
From: Villalovos, John L @ 2005-02-03 21:49 UTC (permalink / raw)
  To: russell; +Cc: Stephen Smalley, selinux

Russell Coker wrote:
> The upstream developer of busybox was accepting of SE Linux patches,
> I had some SE Linux patches in the busybox CVS at one time (not sure
> if they are still there).  If I get a bit of spare time I'll do some
> more work on Busybox SE Linux support, it's good to have for recovery
> purposes and I think I've still got some patches hanging around that
> I never got sorted out properly for release.
> 
> Also you may want to check out the paper I presented at OLS on
> getting SE Linux running on iPaQ's, the stuff about wrapping busybox
> etc will probably be of interest to you.
> 
> If you get the JFFS2 support written I'll be very interested, I have
> a couple of iPaQ's I want to get running SE Linux again.

At the moment Busybox does not compile with SE Linux enabled.  It am
guessing that is using the old 2.4 API stuff.  It is looking for an
include file which is no longer there in the new SE Linux code.

We will see on the JFFS2 stuff.  At the moment we haven't made a
commitment for that.  We still have more investigation to do to see if
it is necessary.

John


--
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.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Advice on bringing up SE Linux
@ 2005-02-01 20:50 Villalovos, John L
  2005-02-02 13:02 ` Stephen Smalley
  0 siblings, 1 reply; 10+ messages in thread
From: Villalovos, John L @ 2005-02-01 20:50 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

Stephen Smalley wrote:
> Any output in /var/log/messages from the attempt to write the policy
> to /selinux/load?  Any difference if you run load_policy on the binary
> policy instead of directly cat'ing it?
> 
> A lot has changed in SELinux since 2.6.5, so you really need
> to move to
> a newer kernel if you want to seriously use it.

Thanks.  We will be moving to a different development board shortly so
hopefully we will be able to move to the latest kernel.

I will work on trying to get load_policy compiled up for what we have
going and see if I can get it to work that way.

Thanks again,
John


--
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.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Advice on bringing up SE Linux
@ 2005-02-01 18:51 Villalovos, John L
  2005-02-01 19:00 ` Stephen Smalley
  0 siblings, 1 reply; 10+ messages in thread
From: Villalovos, John L @ 2005-02-01 18:51 UTC (permalink / raw)
  To: selinux

I am trying to bring up SE Linux on an Intel Xscale processor.  An
IQ80310 to be specific.

We are using a 2.6.5 kernel, since it is the last one to support the
IQ80310 :(

We have compiled up a kernel with SE Linux.  Mounted the selinuxfs on
/selinux.

Now I am trying to figure out how to enable SE Linux.  All the utilities
say the SE Linux is disabled.

When I do:

[iq80310]# cat /proc/self/attr/current
Kernel

And I think I should get something like:
[fc3]# cat /proc/self/attr/current
root:system_r:unconfined_t

I have tried compiling up a policy.15 file and then just cat >
/selinux/load

But that doesn't seem to change anything.

Any help would be greatly appreciated :)

Thanks,
John


--
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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-02-03 21:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01 20:51 Advice on bringing up SE Linux Villalovos, John L
2005-02-03  7:20 ` Russell Coker
2005-02-03 13:42   ` Lorenzo Hernández García-Hierro
  -- strict thread matches above, loose matches on Subject: below --
2005-02-03 21:49 Villalovos, John L
2005-02-01 20:50 Villalovos, John L
2005-02-02 13:02 ` Stephen Smalley
2005-02-01 18:51 Villalovos, John L
2005-02-01 19:00 ` Stephen Smalley
2005-02-01 19:24   ` Stephen Smalley
2005-02-03  7:13     ` Russell Coker

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.