From: Li Zetao <lizetao1@huawei.com> To: <richard@nod.at>, <chengzhihao1@huawei.com> Cc: <lizetao1@huawei.com>, <linux-kernel@vger.kernel.org>, <linux-mtd@lists.infradead.org> Subject: [RFC PATCH 0/5] ubifs: Support POSIX Access Control Lists (ACLs) Date: Wed, 20 Mar 2024 00:16:41 +0800 [thread overview] Message-ID: <20240319161646.2153867-1-lizetao1@huawei.com> (raw) Hi, This patchset is base on [1] and [2], adding implementation of ACLs for ubifs. Implement ACLs features based on POSIX to solve some difficulties that require fine-grained access control. At the same time, it is also to facilitate cross-file system migration. In order to simplify the implementation, only v2 version POSIX ACLs are implemented, eliminating the need for in-memory and on-flash format conversion. And no need to implement security xattr handler in ubifs. Some testcases have been tested and passed: * generic testcases (modified version) for acl group in xfstest[3], they are generic/026/053/077/099/105/237/307/318/319/375/389/444/449/529/697. * tacl_xattr.sh (modified version) in LTP[4]. [1]: https://lore.kernel.org/linux-mtd/1441962597-13543-1-git-send-email-shengyong1@huawei.com/ [2]: https://lore.kernel.org/linux-mtd/1476046382-19185-1-git-send-email-pascal.eberhard@gmail.com/ [3]: https://kernel.googlesource.com/pub/scm/fs/xfs/xfstests-dev/+/refs/heads/master/tests/generic/ [4]: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/fs/acl/tacl_xattr.sh Li Zetao (5): ubifs: Implement POSIX Access Control Lists (ACLs) ubifs: Initialize or update ACLs for inode ubifs: Support accessing ACLs through inode_operations ubifs: Introduce ACLs mount options ubifs: Add ACLs config option fs/ubifs/Kconfig | 14 +++++ fs/ubifs/Makefile | 1 + fs/ubifs/acl.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ fs/ubifs/dir.c | 18 ++++++ fs/ubifs/file.c | 6 ++ fs/ubifs/super.c | 40 +++++++++++++ fs/ubifs/ubifs.h | 15 +++++ fs/ubifs/xattr.c | 1 - 8 files changed, 234 insertions(+), 1 deletion(-) create mode 100644 fs/ubifs/acl.c -- 2.34.1
WARNING: multiple messages have this Message-ID (diff)
From: Li Zetao <lizetao1@huawei.com> To: <richard@nod.at>, <chengzhihao1@huawei.com> Cc: <lizetao1@huawei.com>, <linux-kernel@vger.kernel.org>, <linux-mtd@lists.infradead.org> Subject: [RFC PATCH 0/5] ubifs: Support POSIX Access Control Lists (ACLs) Date: Wed, 20 Mar 2024 00:16:41 +0800 [thread overview] Message-ID: <20240319161646.2153867-1-lizetao1@huawei.com> (raw) Hi, This patchset is base on [1] and [2], adding implementation of ACLs for ubifs. Implement ACLs features based on POSIX to solve some difficulties that require fine-grained access control. At the same time, it is also to facilitate cross-file system migration. In order to simplify the implementation, only v2 version POSIX ACLs are implemented, eliminating the need for in-memory and on-flash format conversion. And no need to implement security xattr handler in ubifs. Some testcases have been tested and passed: * generic testcases (modified version) for acl group in xfstest[3], they are generic/026/053/077/099/105/237/307/318/319/375/389/444/449/529/697. * tacl_xattr.sh (modified version) in LTP[4]. [1]: https://lore.kernel.org/linux-mtd/1441962597-13543-1-git-send-email-shengyong1@huawei.com/ [2]: https://lore.kernel.org/linux-mtd/1476046382-19185-1-git-send-email-pascal.eberhard@gmail.com/ [3]: https://kernel.googlesource.com/pub/scm/fs/xfs/xfstests-dev/+/refs/heads/master/tests/generic/ [4]: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/fs/acl/tacl_xattr.sh Li Zetao (5): ubifs: Implement POSIX Access Control Lists (ACLs) ubifs: Initialize or update ACLs for inode ubifs: Support accessing ACLs through inode_operations ubifs: Introduce ACLs mount options ubifs: Add ACLs config option fs/ubifs/Kconfig | 14 +++++ fs/ubifs/Makefile | 1 + fs/ubifs/acl.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ fs/ubifs/dir.c | 18 ++++++ fs/ubifs/file.c | 6 ++ fs/ubifs/super.c | 40 +++++++++++++ fs/ubifs/ubifs.h | 15 +++++ fs/ubifs/xattr.c | 1 - 8 files changed, 234 insertions(+), 1 deletion(-) create mode 100644 fs/ubifs/acl.c -- 2.34.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
next reply other threads:[~2024-03-19 16:16 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-19 16:16 Li Zetao [this message] 2024-03-19 16:16 ` [RFC PATCH 0/5] ubifs: Support POSIX Access Control Lists (ACLs) Li Zetao 2024-03-19 16:16 ` [RFC PATCH 1/5] ubifs: Implement " Li Zetao 2024-03-19 16:16 ` Li Zetao 2024-03-21 2:55 ` Zhihao Cheng 2024-03-21 2:55 ` Zhihao Cheng 2024-03-22 11:36 ` Li Zetao 2024-03-22 11:36 ` Li Zetao 2024-03-19 16:16 ` [RFC PATCH 2/5] ubifs: Initialize or update ACLs for inode Li Zetao 2024-03-19 16:16 ` Li Zetao 2024-03-21 3:47 ` Zhihao Cheng 2024-03-21 3:47 ` Zhihao Cheng 2024-03-22 11:57 ` Li Zetao 2024-03-22 11:57 ` Li Zetao 2024-03-22 12:07 ` Zhihao Cheng 2024-03-22 12:07 ` Zhihao Cheng 2024-03-19 16:16 ` [RFC PATCH 3/5] ubifs: Support accessing ACLs through inode_operations Li Zetao 2024-03-19 16:16 ` Li Zetao 2024-03-19 16:16 ` [RFC PATCH 4/5] ubifs: Introduce ACLs mount options Li Zetao 2024-03-19 16:16 ` Li Zetao 2024-03-21 6:49 ` Zhihao Cheng 2024-03-21 6:49 ` Zhihao Cheng 2024-03-22 12:05 ` Li Zetao 2024-03-22 12:05 ` Li Zetao 2024-03-22 12:10 ` Zhihao Cheng 2024-03-22 12:10 ` Zhihao Cheng 2024-03-19 16:16 ` [RFC PATCH 5/5] ubifs: Add ACLs config option Li Zetao 2024-03-19 16:16 ` Li Zetao
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240319161646.2153867-1-lizetao1@huawei.com \ --to=lizetao1@huawei.com \ --cc=chengzhihao1@huawei.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=richard@nod.at \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.