Add an export option do disallow readdir plus.

Signed-off-by: Marc Eshel <eshel@us.ibm.com>
systemd: require rpcbind and start rpc.statd

Without rpcbind, ganesha.nfsd fails to start with:

    Register_program :DISP :FATAL :Cannot register NFS V3 on UDP

This change also includes a new systemd-unit for starting rpc.statd. When the
new nfs-ganesha-lock.service is started, the original nfs-lock.service is
stopped (if started), and the kernel lockd module unregisters the nlockmgr
program from the portmapper.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Fixed build issue related to glib dbus python script consolidation

Patch e2dd540d132f8a16c01c9ba210d9eac5b833c35e introduced a small regression
regarding build process (removing old files). This simple patch allows to build
Ganesha with admin tools support without errors.

Signed-off-by: Thomas Favre-Bulle <thomas.favre-bulle@bull.net>
9P: brings information from export manager down to 9p protocol layer

Change-Id: I8fa711ddc70731b9d6b4fdf54b4e1842f2621c7e
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Don't grant a delegation when there is a conflicting open

The current code grants a delegation even though there are some opens
that conflict with granting the delegation. Possible rationale for this
omission is incorrect thinking that underlying FSAL, supporting the
delegation, would detect this and prevent us getting the lease lock.

Since we will have only one outstanding open call with FSAL, the first
call to acquire the lease lock for a write delegation will succeed even
if other NFS clients had opened the file for read or write.

We use cache_entry_t's share_state to know the number of prior read
opens and write opens to detect a conflict. If granting a delegation
would conflict with existing prior opens, we simply don't grant
delegation.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Update ntirpc submodule.

Take Bill's fix for RD4H and a change to remove an internal symbol from
rpc_com.h.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Merge remote-tracking branch 'phdeniel/pull_request' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'tfb/Pull_requests_v2.2-dev-12' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'ndevos/systemd/requires-rpcbind' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'malahal/deleg-grant' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'marc/no-readdir-plus' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'linuxbox2/2dev11' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add -Wno-strict-aliasing to maintainer mode compile flags

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
V2.2-dev-12

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
pNFS/LUSTRE: invalidate attrs on close (force DS/MDS coherency)

/!\ This commit is for internal use only, it should be kept in next and never placed in a pull request

Change-Id: Icc0b221943efe85cc5f3e60dd160bd737ab0f9ed
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
FSAL_LUSTRE: builds FSAL_SHOOK with name "SHOOK"

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
LOG: adds a "COMPONENT_SECURITY" to the logging components.

Change-Id: Iabd74d1bf8fedac1333298502a832b62a9cd3500
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Adds SELINUX flags in CMakeLists.txt files

Change-Id: I369d079f944a1e375b23c32c9f292b4bc6fae087
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
9P/SELinux: fixes bug when managing flags EXPORT_OPTION_SELINUX

Change-Id: Ia150c9288b4f2bca6019f0147a401a958bd9952c
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Export management : adds a "selinux" SecType

Change-Id: I73c77b538972053e22d876f5ce6db0cc9a178c0e
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>