Re: [PATCH v4 1/3] xattr: add simple initxattrs function

2017-01-09 Thread David Graziano
On Sun, Jan 8, 2017 at 3:55 AM, Christoph Hellwig wrote: >> +/* >> + * Callback for security_inode_init_security() for acquiring xattrs. >> + */ >> +int simple_xattr_initxattrs(struct inode *inode, >> + const struct xattr *xattr_array, >> + void *fs_

[PATCH v4 2/3] shmem: use simple initxattrs callback

2017-01-05 Thread David Graziano
Updates shmem to use the newly created simple_xattr_initxattrs() function to minimize code duplication with other LSM callback functions. Signed-off-by: David Graziano --- mm/shmem.c | 53 - 1 file changed, 12 insertions(+), 41 deletions

[PATCH v4 0/3] initxattr callback update for mqueue xattr support

2017-01-05 Thread David Graziano
lback function - updates mqueue to use new callback function Changes v1 -> v2: - formatting/commit message David Graziano (3): xattr: add simple initxattrs function shmem: use simple initxattrs callback mqueue: Implement generic xattr support fs/xattr.

[PATCH v4 1/3] xattr: add simple initxattrs function

2017-01-05 Thread David Graziano
callback function. Signed-off-by: David Graziano --- fs/xattr.c| 39 +++ include/linux/xattr.h | 3 +++ 2 files changed, 42 insertions(+) diff --git a/fs/xattr.c b/fs/xattr.c index c243905..69dd142 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -994,3

[PATCH v4 3/3] mqueue: Implement generic xattr support

2017-01-05 Thread David Graziano
uses the newly created simple_xattr_initxattrs() LSM callback function. Signed-off-by: David Graziano --- ipc/mqueue.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 0b13ace..32271a0 100644 --- a/ipc/mqueue.c +++ b/ipc

Re: [PATCH 1/1 V2] mqueue: Implment generic xattr support

2016-12-08 Thread David Graziano
On Mon, Dec 5, 2016 at 5:12 PM, Paul Moore wrote: > On Mon, Dec 5, 2016 at 11:15 AM, David Graziano > wrote: >> On Mon, Dec 5, 2016 at 9:37 AM, Paul Moore wrote: >>> On Mon, Nov 28, 2016 at 3:04 PM, David Graziano >>> wrote: >>>> On Wed, Nov 9, 2016 a

Re: [PATCH 1/1 V2] mqueue: Implment generic xattr support

2016-12-05 Thread David Graziano
On Mon, Dec 5, 2016 at 9:37 AM, Paul Moore wrote: > On Mon, Nov 28, 2016 at 3:04 PM, David Graziano > wrote: >> On Wed, Nov 9, 2016 at 4:25 PM, Paul Moore wrote: >>> On Wed, Nov 9, 2016 at 11:25 AM, David Graziano >>> wrote: >>>> On Mon, Nov 7, 2016 a

Re: [PATCH 1/1 V2] mqueue: Implment generic xattr support

2016-11-28 Thread David Graziano
On Wed, Nov 9, 2016 at 4:25 PM, Paul Moore wrote: > On Wed, Nov 9, 2016 at 11:25 AM, David Graziano > wrote: >> On Mon, Nov 7, 2016 at 4:23 PM, Paul Moore wrote: >>> On Mon, Nov 7, 2016 at 3:46 PM, David Graziano >>> wrote: >>>> This patch adds supp

Re: [PATCH 1/1 V2] mqueue: Implment generic xattr support

2016-11-09 Thread David Graziano
On Mon, Nov 7, 2016 at 4:23 PM, Paul Moore wrote: > On Mon, Nov 7, 2016 at 3:46 PM, David Graziano > wrote: >> This patch adds support for generic extended attributes within the >> POSIX message queues filesystem and setting them by consulting the LSM. >> Th

[PATCH 1/1 V2] mqueue: Implment generic xattr support

2016-11-07 Thread David Graziano
implementation and LSM call back function are based off tmpfs/shmem. Signed-off-by: David Graziano --- ipc/mqueue.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 0b13ace..512a546 100644 --- a/ipc/mqueue.c