[PATCH] XATTR issues on JFFS2
KaiGai Kohei
kaigai at ak.jp.nec.com
Sun Nov 27 01:58:14 EST 2005
Hi,
This attached patches are enables XATTR support on JFFS2.
some new functionalities are added from take-3 patches.
# Sorry for slowing update.
[NOTICE]
We can test this patch with ONLY 2.6.14 kernel.
The previous versions of kernel do not support an new LSM hook.
[1/2] jffs2_xattr_take-4.patch
* CONFIG_JFFS2_XATTR was renamed to CONFIG_JFFS2_FS_XATTR
The XATTR configuration switch are named CONFIG_<fsname>_FS_XATTR
on another some filesystems which support XATTR.
I also follow this manner.
* CONFIG_JFFS2_FS_POSIX_ACL and JFFS2_FS_SECURITY are selectable.
this follows another FS's manner.
* POSIX-ACL support was added.
This functionality is implemented in acl.c, acl.h.
I implemented the most part of this functionalities by referring
the Ext2/3's implementation of POSIX-ACL.
If I took bad manner or misunderstanding for implementation,
notice me please.
* jffs2_init_security() was added for inode initialization.
At 2.6.14, new LSM hook(security_inode_init_security) was added.
Because of this, any filesystems obtain security attribtues must
call this this hook to set the security label for new inode.
It's deployed in jffs2_create(), jffs2_symlink(), jffs2_mkdir()
and jffs2_mknod().
* Some patch conflicts were fixed.
We can apply this patches for latest MTD-CVS without incident.
* An obvious bug was fixed.
In jffs2_build_xattr_subsystem(), NULL checking was omitted.
[2/2] mkfs.jffs2-xattr.patch
* --with-{xattr|selinux|posix-acl} options are added.
--with-xattr enables to pack all xattr-entries into jffs2 image file.
--with-selinux enables to pack security related xattr-entries which
are named as 'security.*' into jffs2 image file.
--with-posix-acl enables to pack ACL related xattr-entries which
are names as 'system.posix_acl_access' or 'system.posix_acl_default'.
I hope to merge those functionalities into MTD's CVS tree.
Thanks,
--
KaiGai Kohei <kaigai at ak.jp.nec.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkfs.jffs2-xattr.patch
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20051127/41fe0439/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jffs2_xattr_take-4.patch
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20051127/41fe0439/attachment-0001.pl
More information about the linux-mtd
mailing list