linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFSv4.2 mode_umask support
@ 2016-12-03  3:53 J. Bruce Fields
  2016-12-03  3:53 ` [PATCH 1/2] nfs: add support for the umask attribute J. Bruce Fields
  2016-12-09 20:59 ` NFSv4.2 mode_umask support J. Bruce Fields
  0 siblings, 2 replies; 14+ messages in thread
From: J. Bruce Fields @ 2016-12-03  3:53 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker
  Cc: Andreas Gruenbacher, Linux NFS Mailing List

Since the last version, just two minor changes:

	- client uses the stored supported attribute results instead of
	  a new capability flag.
	- if a nutty client attempts to set both mode and new attribute,
	  the server returns INVAL instead of ignoring the mode.

Description, as before:

The following patches allow the umask to be ignored in the presence of
inheritable NFSv4 ACLs.  Otherwise inheritable ACLs can be rendered
mostly useless whenever the umask masks out group bits.

This solves a problem we've seen complaints about for some time, both
upstream and from RHEL users.

The new protocol has been discussed in the IETF working group and is
documented at:

	https://tools.ietf.org/html/draft-ietf-nfsv4-umask-02

It's unlikely that we'll discover problems requiring an incompatible
change, so I think we should consider this for 4.10.

--b.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* NFSv4.2 mode_umask support
@ 2016-11-23 20:41 J. Bruce Fields
  2016-11-23 20:41 ` [PATCH 1/2] nfs: add support for the umask attribute J. Bruce Fields
  0 siblings, 1 reply; 14+ messages in thread
From: J. Bruce Fields @ 2016-11-23 20:41 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker; +Cc: linux-nfs, Andreas Gruenbacher

Resending--can we get any opinions on these?

The following patches allow the umask to be ignored in the presence of
inheritable NFSv4 ACLs.  Otherwise inheritable ACLs can be rendered
mostly useless whenever the umask masks out group bits.

This solves a problem we've seen complaints about for some time, both
upstream and from RHEL users.

The new protocol has been discussed in the IETF working group and is
documented at:

        https://tools.ietf.org/html/draft-ietf-nfsv4-umask-02

It's unlikely that we'll discover problems requiring an incompatible
change, so I think we should consider this for 4.10.

--b.


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/2] NFSv4.2 mode_umask support
  2016-10-28 20:23 ` [PATCH 0/2] NFSv4.2 umask support J. Bruce Fields
@ 2016-10-29 22:20 Andreas Gruenbacher
  2016-10-28 20:23 ` [PATCH 0/2] NFSv4.2 umask support J. Bruce Fields
  1 sibling, 1 reply; 14+ messages in thread
From: Andreas Gruenbacher @ 2016-10-29 22:20 UTC (permalink / raw)
  To: linux-nfs
  Cc: Andreas Gruenbacher, Trond Myklebust, Anna Schumaker,
	J. Bruce Fields

Bruce and all,

On Fri, Oct 28, 2016 at 10:23 PM, J. Bruce Fields <bfields@redhat.com> wrote:
> From: "J. Bruce Fields" <bfields@redhat.com>
>
> The following patches allow the umask to be ignored in the presence of
> inheritable NFSv4 ACLs.  Otherwise inheritable ACLs can be rendered
> mostly useless whenever the umask masks out group bits.
>
> This solves a problem we've seen complaints about for some time, both
> upstream and from RHEL users.
>
> The new protocol has been discussed in the IETF working group and is
> documented at:
>
>         https://tools.ietf.org/html/draft-ietf-nfsv4-umask-02
>
> It's unlikely that we'll discover problems requiring an incompatible
> change, so I think we should consider this for 4.10.

the patches still refer to the new attribute as FATTR4_WORD2_UMASK which is
confusing.  Can we please call it FATTR4_WORD2_MODE_UMASK as in the patches in
this series to better match what the attribute is called in
draft-ietf-nfsv4-umask-02.

Other than refreshing the patches and renaming FATTR4_WORD2_UMASK to
FATTR4_WORD2_MODE_UMASK and NFS_CAP_UMASK to NFS_CAP_MODE_UMASK, the patches
here are the same.

Thanks,
Andreas

Andreas Gruenbacher (2):
  nfs: add support for the umask attribute
  nfsd: add support for the umask attribute

 fs/nfs/dir.c              |  7 ++++++-
 fs/nfs/nfs4proc.c         | 21 ++++++++++++++++-----
 fs/nfs/nfs4xdr.c          | 36 ++++++++++++++++++++++++------------
 fs/nfsd/nfs4xdr.c         | 26 +++++++++++++++++++++-----
 fs/nfsd/nfsd.h            |  9 +++++++--
 fs/nfsd/nfssvc.c          |  4 ++--
 include/linux/nfs4.h      |  1 +
 include/linux/nfs_fs_sb.h |  1 +
 include/linux/nfs_xdr.h   |  2 ++
 9 files changed, 80 insertions(+), 27 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-02-02 16:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-03  3:53 NFSv4.2 mode_umask support J. Bruce Fields
2016-12-03  3:53 ` [PATCH 1/2] nfs: add support for the umask attribute J. Bruce Fields
2016-12-03  3:53   ` [PATCH 2/2] nfsd: " J. Bruce Fields
2016-12-09 20:59 ` NFSv4.2 mode_umask support J. Bruce Fields
  -- strict thread matches above, loose matches on Subject: below --
2016-11-23 20:41 J. Bruce Fields
2016-11-23 20:41 ` [PATCH 1/2] nfs: add support for the umask attribute J. Bruce Fields
2016-12-01 22:07   ` J. Bruce Fields
2016-12-02 13:12     ` Andreas Gruenbacher
2016-12-02 16:47       ` J. Bruce Fields
2017-02-01 21:31         ` Olga Kornievskaia
2017-02-01 22:37           ` J. Bruce Fields
2017-02-01 22:44         ` Andreas Gruenbacher
2017-02-02 16:49           ` Olga Kornievskaia
2016-10-29 22:20 [PATCH 0/2] NFSv4.2 mode_umask support Andreas Gruenbacher
2016-10-28 20:23 ` [PATCH 0/2] NFSv4.2 umask support J. Bruce Fields
2016-10-28 20:23   ` [PATCH 1/2] nfs: add support for the umask attribute J. Bruce Fields
2016-10-29 22:20   ` Andreas Gruenbacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).