From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030334Ab2HPSWM (ORCPT ); Thu, 16 Aug 2012 14:22:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39982 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030305Ab2HPSWH (ORCPT ); Thu, 16 Aug 2012 14:22:07 -0400 Message-Id: <20120816174453.154143248@napanee.usersys.redhat.com> User-Agent: quilt/0.48-1 Date: Thu, 16 Aug 2012 13:44:53 -0400 From: aris@redhat.com To: linux-kernel@vger.kernel.org Cc: cgroups@vger.kernel.org, Li Zefan , Tejun Heo , Hugh Dickins , Hillf Danton , Lennart Poettering Subject: [PATCH v6 0/4] cgroup: add xattr support Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 Cc: Tejun Heo Cc: Hugh Dickins Cc: Hillf Danton Cc: Lennart Poettering Signed-off-by: Li Zefan Signed-off-by: Aristeu Rozanski -- Aristeu