From e539a49638b5b3d40621c18c8b291e53020219c3 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Fri, 25 Aug 2006 13:28:57 +0000 Subject: [PATCH] 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 --- policy/modules/kernel/filesystem.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/kernel/filesystem.te b/policy/modules/kernel/filesystem.te index 23753bd2c..fab7a6222 100644 --- a/policy/modules/kernel/filesystem.te +++ b/policy/modules/kernel/filesystem.te @@ -24,6 +24,7 @@ sid fs gen_context(system_u:object_r:fs_t,s0) 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);