Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Stephen Rothwell
Hi Vivek, On Mon, 11 Jul 2016 09:40:04 -0400 Vivek Goyal wrote: > > On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: > > Hi, > > > > [auto build test ERROR on next-20160708] > > [also build test ERROR on v4.7-rc6] > > [cannot apply to pcmoore-selinux/next

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Stephen Rothwell
Hi Vivek, On Mon, 11 Jul 2016 09:40:04 -0400 Vivek Goyal wrote: > > On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: > > Hi, > > > > [auto build test ERROR on next-20160708] > > [also build test ERROR on v4.7-rc6] > > [cannot apply to pcmoore-selinux/next security/next

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Mon, Jul 11, 2016 at 11:31:47AM -0400, Stephen Smalley wrote: [..] > > +static inline int security_inode_copy_up_xattr(const char *name) > > +{ > > + -EOPNOTSUPP; > > return? Yes, this one I fixed it in my patches now. kbuild also flagged this. Vivek

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Mon, Jul 11, 2016 at 11:31:47AM -0400, Stephen Smalley wrote: [..] > > +static inline int security_inode_copy_up_xattr(const char *name) > > +{ > > + -EOPNOTSUPP; > > return? Yes, this one I fixed it in my patches now. kbuild also flagged this. Vivek

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Mon, Jul 11, 2016 at 11:31:47AM -0400, Stephen Smalley wrote: > On 07/08/2016 12:19 PM, Vivek Goyal wrote: > > Provide a security hook which is called when xattrs of a file are being > > copied up. This hook is called once for each xattr and LSM can return 0 > > to access the xattr, 1 to reject

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Mon, Jul 11, 2016 at 11:31:47AM -0400, Stephen Smalley wrote: > On 07/08/2016 12:19 PM, Vivek Goyal wrote: > > Provide a security hook which is called when xattrs of a file are being > > copied up. This hook is called once for each xattr and LSM can return 0 > > to access the xattr, 1 to reject

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Stephen Smalley
On 07/08/2016 12:19 PM, Vivek Goyal wrote: > Provide a security hook which is called when xattrs of a file are being > copied up. This hook is called once for each xattr and LSM can return 0 > to access the xattr, 1 to reject xattr, -EOPNOTSUPP if none of the lsms > claim to know xattr and a

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Stephen Smalley
On 07/08/2016 12:19 PM, Vivek Goyal wrote: > Provide a security hook which is called when xattrs of a file are being > copied up. This hook is called once for each xattr and LSM can return 0 > to access the xattr, 1 to reject xattr, -EOPNOTSUPP if none of the lsms > claim to know xattr and a

Re: [kbuild-all] [PATCH 3/7] security, overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Fengguang Wu
On Mon, Jul 11, 2016 at 09:40:04AM -0400, Vivek Goyal wrote: On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: Hi, [auto build test ERROR on next-20160708] [also build test ERROR on v4.7-rc6] [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 v4.7-rc4] [if

Re: [kbuild-all] [PATCH 3/7] security, overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Fengguang Wu
On Mon, Jul 11, 2016 at 09:40:04AM -0400, Vivek Goyal wrote: On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: Hi, [auto build test ERROR on next-20160708] [also build test ERROR on v4.7-rc6] [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 v4.7-rc4] [if

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: > Hi, > > [auto build test ERROR on next-20160708] > [also build test ERROR on v4.7-rc6] > [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 > v4.7-rc4] > [if your patch is applied to the wrong git tree,

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Vivek Goyal
On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: > Hi, > > [auto build test ERROR on next-20160708] > [also build test ERROR on v4.7-rc6] > [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 > v4.7-rc4] > [if your patch is applied to the wrong git tree,

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-08 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160708] [also build test ERROR on v4.7-rc6] [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 v4.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-08 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160708] [also build test ERROR on v4.7-rc6] [cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 v4.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-08 Thread Vivek Goyal
Provide a security hook which is called when xattrs of a file are being copied up. This hook is called once for each xattr and LSM can return 0 to access the xattr, 1 to reject xattr, -EOPNOTSUPP if none of the lsms claim to know xattr and a negative error code if something went terribly wrong.

[PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-08 Thread Vivek Goyal
Provide a security hook which is called when xattrs of a file are being copied up. This hook is called once for each xattr and LSM can return 0 to access the xattr, 1 to reject xattr, -EOPNOTSUPP if none of the lsms claim to know xattr and a negative error code if something went terribly wrong.