All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] UBIFS: add ACL support
@ 2015-03-25 11:46 Sheng Yong
  2015-03-25 11:46 ` [RFC PATCH 1/3] UBIFS: xattr: splite generic set/get xattr functions from ubifs_set/getxattr Sheng Yong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sheng Yong @ 2015-03-25 11:46 UTC (permalink / raw)
  To: dedekind1, adrian.hunter; +Cc: miaoxie, linux-mtd, hujianyang

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-07  1:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25 11:46 [RFC PATCH 0/3] UBIFS: add ACL support Sheng Yong
2015-03-25 11:46 ` [RFC PATCH 1/3] UBIFS: xattr: splite generic set/get xattr functions from ubifs_set/getxattr Sheng Yong
2015-03-25 11:46 ` [RFC PATCH 2/3] UBIFS: ACL: add ACL support Sheng Yong
2015-04-07  1:14   ` Sheng Yong
2015-03-25 11:46 ` [RFC PATCH 3/3] UBIFS: ACL: add ACL config option Sheng Yong

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.