|Subject:||[PATCH v6 0/4] cgroup: add xattr support|
|Date:||Thu, 16 Aug 2012 13:44:53 -0400|
|Cc:||email@example.com, Li Zefan <firstname.lastname@example.org>, Tejun Heo <email@example.com>, Hugh Dickins <firstname.lastname@example.org>, Hillf Danton <email@example.com>, Lennart Poettering <firstname.lastname@example.org>|
This series are a refreshed version of a patchset submitted by Li Zefan back in march: https://lkml.org/lkml/2012/3/1/13 With Li's permission, I refreshed the patches to apply over the latest upstream and added the modifications suggested by others in the thread: - using a mount option instead of config option to enable the xattr support - reinitialize the list in kmem_xattrs_free() - renamed functions to simple_xattr_*() There're two users for this patchset: - SELinux: to be able to control access to cgroupfs inside containers - systemd: to store meta information such as main PID in a service cgroup, set specific services special options in the cgroup. While the xattrs will use kernel memory like tmpfs, they're restricted to 'security' (which controls the format of the value) and 'trusted' (which requires CAP_SYS_ADMIN). If kernel memory usage is still a concern, we're not far from having memcg account for kernel memory. v6: - only allow trusted and security - replace subsys_bits by something more meaningful v5: - check for permissions for user xattr namespace v4: - implemented requested changes by Tejun Heo in patch #2 Cc: Li Zefan <email@example.com> Cc: Tejun Heo <firstname.lastname@example.org> Cc: Hugh Dickins <email@example.com> Cc: Hillf Danton <firstname.lastname@example.org> Cc: Lennart Poettering <email@example.com> Signed-off-by: Li Zefan <firstname.lastname@example.org> Signed-off-by: Aristeu Rozanski <email@example.com> -- Aristeu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds