All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add fs_use_xattr on jffs2
@ 2006-08-25 11:54 KaiGai Kohei
  2006-08-25 13:28 ` Christopher J. PeBenito
  2006-08-25 13:56 ` Lorenzo Hernández García-Hierro
  0 siblings, 2 replies; 4+ messages in thread
From: KaiGai Kohei @ 2006-08-25 11:54 UTC (permalink / raw)
  To: selinux

This patch enables to use xattr on jffs2 filesystem.

The jffs2 filesystem is a filesystem for memory technology
devices (MTD), and xattr supporting on jffs2 is neccesary
to use SELinux with a small diskless PDA and so on.
This facility is queued for kernel 2.6.18 now, so I hope
to merge this small patch into the refpolicy repository.

Example of xattr/jffs2: SELinux on OpenZaurus :D
  http://www.kaigai.gr.jp/pub/sezaurus.jpg

Thanks,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>

Index: policy/modules/kernel/filesystem.te
===================================================================
--- policy/modules/kernel/filesystem.te (revision 1965)
+++ policy/modules/kernel/filesystem.te (working copy)
@@ -24,6 +24,7 @@
 fs_use_xattr ext2 gen_context(system_u:object_r:fs_t,s0);
 fs_use_xattr ext3 gen_context(system_u:object_r:fs_t,s0);
 fs_use_xattr gfs2 gen_context(system_u:object_r:fs_t,s0);
+fs_use_xattr jffs2 gen_context(system_u:object_r:fs_t,s0);
 fs_use_xattr jfs gen_context(system_u:object_r:fs_t,s0);
 fs_use_xattr xfs gen_context(system_u:object_r:fs_t,s0);


--
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] 4+ messages in thread

* Re: [PATCH] add fs_use_xattr on jffs2
  2006-08-25 11:54 [PATCH] add fs_use_xattr on jffs2 KaiGai Kohei
@ 2006-08-25 13:28 ` Christopher J. PeBenito
  2006-08-25 13:56 ` Lorenzo Hernández García-Hierro
  1 sibling, 0 replies; 4+ messages in thread
From: Christopher J. PeBenito @ 2006-08-25 13:28 UTC (permalink / raw)
  To: KaiGai Kohei; +Cc: selinux

On Fri, 2006-08-25 at 20:54 +0900, KaiGai Kohei wrote:
> This patch enables to use xattr on jffs2 filesystem.
> 
> The jffs2 filesystem is a filesystem for memory technology
> devices (MTD), and xattr supporting on jffs2 is neccesary
> to use SELinux with a small diskless PDA and so on.
> This facility is queued for kernel 2.6.18 now, so I hope
> to merge this small patch into the refpolicy repository.

Thanks, merged.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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] 4+ messages in thread

* Re: [PATCH] add fs_use_xattr on jffs2
  2006-08-25 11:54 [PATCH] add fs_use_xattr on jffs2 KaiGai Kohei
  2006-08-25 13:28 ` Christopher J. PeBenito
@ 2006-08-25 13:56 ` Lorenzo Hernández García-Hierro
  2006-08-25 15:02   ` KaiGai Kohei
  1 sibling, 1 reply; 4+ messages in thread
From: Lorenzo Hernández García-Hierro @ 2006-08-25 13:56 UTC (permalink / raw)
  To: KaiGai Kohei; +Cc: selinux

Hey KaiGai,

We talked during the symposium though we didn't have much time for it.
Glad to see you're still working on embedded SELinux stuff. So, what's
the current status of jffs2? It has full support for xattr now, right?
Do the Infradead guys (jffs maintainers) know about this? Or it's
already merged in upstream?

Are you using a special policy?  Busybox modified?

I think this could be a nice thing for the next symposium, say,
prepare modified uClinux buildroot system, make it available so people
can build embedded systems with native support for SELinux. Actually
this will bring some real buzz to the field. There are many platforms
out there supposed to be suitable for building "secure firewall
appliances", yet none implements a single serious solution to make it
"secure" beyond just the buzz wording itself.

Cheers.

PS: Don't hesitate to comment on a private thread. I'm not sure if
someone around will be interested on the idea, thus I'm CC'ing the
list.

On 8/25/06, KaiGai Kohei <kaigai@kaigai.gr.jp> wrote:
> This patch enables to use xattr on jffs2 filesystem.
>
> The jffs2 filesystem is a filesystem for memory technology
> devices (MTD), and xattr supporting on jffs2 is neccesary
> to use SELinux with a small diskless PDA and so on.
> This facility is queued for kernel 2.6.18 now, so I hope
> to merge this small patch into the refpolicy repository.
>
> Example of xattr/jffs2: SELinux on OpenZaurus :D
>   http://www.kaigai.gr.jp/pub/sezaurus.jpg
>
> Thanks,
> --
> KaiGai Kohei <kaigai@kaigai.gr.jp>
>
> Index: policy/modules/kernel/filesystem.te
> ===================================================================
> --- policy/modules/kernel/filesystem.te (revision 1965)
> +++ policy/modules/kernel/filesystem.te (working copy)
> @@ -24,6 +24,7 @@
>  fs_use_xattr ext2 gen_context(system_u:object_r:fs_t,s0);
>  fs_use_xattr ext3 gen_context(system_u:object_r:fs_t,s0);
>  fs_use_xattr gfs2 gen_context(system_u:object_r:fs_t,s0);
> +fs_use_xattr jffs2 gen_context(system_u:object_r:fs_t,s0);
>  fs_use_xattr jfs gen_context(system_u:object_r:fs_t,s0);
>  fs_use_xattr xfs gen_context(system_u:object_r:fs_t,s0);
>
>
> --
> 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.
>

--
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] 4+ messages in thread

* Re: [PATCH] add fs_use_xattr on jffs2
  2006-08-25 13:56 ` Lorenzo Hernández García-Hierro
@ 2006-08-25 15:02   ` KaiGai Kohei
  0 siblings, 0 replies; 4+ messages in thread
From: KaiGai Kohei @ 2006-08-25 15:02 UTC (permalink / raw)
  To: lorenzo; +Cc: selinux

Hi, Lorenzo.

> We talked during the symposium though we didn't have much time for it.
> Glad to see you're still working on embedded SELinux stuff. So, what's
> the current status of jffs2? It has full support for xattr now, right?

Yes, all of functions we need to enable SELinux are available.
In addition, you can enable POSIX ACL support on jffs2.
# But, POSIX ACL consumes memory as much as Ext2/3, I think it's not
# suitable for embedded. So, it should be fixed on 2.6.19. orz

> Do the Infradead guys (jffs maintainers) know about this? Or it's
> already merged in upstream?

This achievement would not have been possible without collaborating
with David Woodhouse and any other MTD peopel.
The serious of patches are already merged into Linus's git-tree via
MTD-tree and queued for 2.6.18 now.
See,
http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.18-rc1

> Are you using a special policy?  Busybox modified?

No, I installed a non-modified Nakamura's policy the small PDA,
because I didn't have enough time for this.
And, busybox is not modified by same reason.

'ps' is an exception. As it didn't work correctly, I installed
a part of the procps package.

> I think this could be a nice thing for the next symposium, say,
Please recomend it to my boss. :)

> prepare modified uClinux buildroot system, make it available so people
> can build embedded systems with native support for SELinux. Actually
> this will bring some real buzz to the field. There are many platforms
> out there supposed to be suitable for building "secure firewall
> appliances", yet none implements a single serious solution to make it
> "secure" beyond just the buzz wording itself.

What kind of modifications for uClibc is necessary, do you think?
Because I don't have enough experimence on embedded region,
any ideaes and collaborations are wellcome!

Thanks,
-- 
KaiGai Kohei <kaigai@kaigai.gr.jp>

--
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] 4+ messages in thread

end of thread, other threads:[~2006-08-25 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25 11:54 [PATCH] add fs_use_xattr on jffs2 KaiGai Kohei
2006-08-25 13:28 ` Christopher J. PeBenito
2006-08-25 13:56 ` Lorenzo Hernández García-Hierro
2006-08-25 15:02   ` KaiGai Kohei

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.