https://github.com/torvalds/linux
Revision 1e6f209515a08de29ec53b653eac73b50efd949c authored by Anna Schumaker on 25 July 2017, 20:10:47 UTC, committed by Anna Schumaker on 26 July 2017, 20:53:57 UTC
Commit bd8b2441742b ("NFS: Store the raw NFS access mask in the inode's
access cache") changed how the access results are stored after an
access() call.  An NFS v4 OPEN might have access bits returned with the
opendata, so we should use the NFS4_ACCESS values when determining the
return value in nfs4_opendata_access().

Fixes: bd8b2441742b ("NFS: Store the raw NFS access mask in the inode's
access cache")
Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
1 parent 1ebf980
Raw File
Tip revision: 1e6f209515a08de29ec53b653eac73b50efd949c authored by Anna Schumaker on 25 July 2017, 20:10:47 UTC
NFS: Use raw NFS access mask in nfs4_opendata_access()
Tip revision: 1e6f209
Kconfig
config SECURITY_LOADPIN
	bool "Pin load of kernel files (modules, fw, etc) to one filesystem"
	depends on SECURITY && BLOCK
	help
	  Any files read through the kernel file reading interface
	  (kernel modules, firmware, kexec images, security policy)
	  can be pinned to the first filesystem used for loading. When
	  enabled, any files that come from other filesystems will be
	  rejected. This is best used on systems without an initrd that
	  have a root filesystem backed by a read-only device such as
	  dm-verity or a CDROM.

config SECURITY_LOADPIN_ENABLED
	bool "Enforce LoadPin at boot"
	depends on SECURITY_LOADPIN
	help
	  If selected, LoadPin will enforce pinning at boot. If not
	  selected, it can be enabled at boot with the kernel parameter
	  "loadpin.enabled=1".
back to top