Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1437309
| From | Paul Moore <pmoore@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file |
| Date | 2016-07-05 23:50 +0200 |
| Message-ID | <rRGoa-8tW-15@gated-at.bofh.it> (permalink) |
| References | <rRAVs-4Ms-13@gated-at.bofh.it> <rRAVs-4Ms-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jul 5, 2016 at 11:50 AM, Vivek Goyal <vgoyal@redhat.com> 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 one can either
> accept or reject xattr. If 0 is returned, xattr will be copied up, if 1
> is returned, xattr will not be copied up and if negative error code
> is returned, copy up will be aborted.
>
> In SELinux, label of lower file is not copied up. File already has been
> set with right label at the time of creation and we don't want to overwrite
> that label.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
> ---
> fs/overlayfs/copy_up.c | 8 ++++++++
> include/linux/lsm_hooks.h | 13 +++++++++++++
> include/linux/security.h | 10 ++++++++++
> security/security.c | 9 +++++++++
> security/selinux/hooks.c | 14 ++++++++++++++
> 5 files changed, 54 insertions(+)
To continue the earlier feedback about mixing generic LSM hook
definitions with the SELinux specific hook implementations - I prefer
to see patchsets organized in the following manner:
[PATCH 1/X] - add new LSM hooks and the calls from the relevant
subsystems, e.g.
{security/security.c,include/linux/security.h,fs/overlayfs/*}
[PATCH 2/X] - LSM specific hook implementation, e.g. security/selinux/*
[PATCH n/X] - LSM specific hook implementation, e.g. security/smack/*
--
paul moore
security @ redhat
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-05 18:00 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 22:30 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-05 23:20 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 23:40 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-06 19:10 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-06 20:00 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-06 21:10 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Casey Schaufler <casey@schaufler-ca.com> - 2016-07-06 21:30 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Paul Moore <pmoore@redhat.com> - 2016-07-05 23:50 +0200
Re: [PATCH 2/5] security,overlayfs: Provide security hook for copy up of xattrs for overlay file Vivek Goyal <vgoyal@redhat.com> - 2016-07-06 00:00 +0200
csiph-web