[RFC PATCH 0/3] UBIFS: add ACL support

Sheng Yong shengyong1 at huawei.com
Wed Mar 25 04:46:02 PDT 2015


UBIFS ACL is based on xattr. Three structures, ubifs_acl_header,
ubifs_acl_entry, and ubifs_acl_entry_short are used to format the ACL
value on flash.

ACL format between in-memory and on-flash is switched before writting
it to flash and after reading it from flash. The writting and reading
operations are implemented by generic set/get xattr functions. ACL of
a new file is inheritted from the parent directory when creating new
inode.

For xattr, generic functions of setting and getting xattr are splited
from original ubifs_setxattr and ubifs_getxattr so that ACL could use
them.

Thanks,
Sheng

Sheng Yong (3):
  UBIFS: xattr: splite generic set/get xattr functions from
    ubifs_set/getxattr
  UBIFS: ACL: add ACL support
  UBIFS: ACL: add ACL config option

 fs/ubifs/Kconfig  |  11 ++
 fs/ubifs/Makefile |   1 +
 fs/ubifs/acl.c    | 316 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/ubifs/dir.c    |   7 ++
 fs/ubifs/file.c   |  14 +++
 fs/ubifs/super.c  |  15 +++
 fs/ubifs/ubifs.h  |   7 ++
 fs/ubifs/xattr.c  |  52 +++++++--
 8 files changed, 413 insertions(+), 10 deletions(-)
 create mode 100644 fs/ubifs/acl.c

-- 
1.8.3.4




More information about the linux-mtd mailing list