android_kernel_motorola_sm6225/include/linux/sunrpc
Jeff Layton f9c72d10d6 sunrpc: make debugfs file creation failure non-fatal
We currently have a problem that SELinux policy is being enforced when
creating debugfs files. If a debugfs file is created as a side effect of
doing some syscall, then that creation can fail if the SELinux policy
for that process prevents it.

This seems wrong. We don't do that for files under /proc, for instance,
so Bruce has proposed a patch to fix that.

While discussing that patch however, Greg K.H. stated:

    "No kernel code should care / fail if a debugfs function fails, so
     please fix up the sunrpc code first."

This patch converts all of the sunrpc debugfs setup code to be void
return functins, and the callers to not look for errors from those
functions.

This should allow rpc_clnt and rpc_xprt creation to work, even if the
kernel fails to create debugfs files for some reason.

Symptoms were failing krb5 mounts on systems using gss-proxy and
selinux.

Fixes: 388f0c7767 "sunrpc: add a debugfs rpc_xprt directory..."
Cc: stable@vger.kernel.org
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2015-03-31 14:15:08 -04:00
..
addr.h sunrpc: move address copy/cmp/convert routines and prototypes from clnt.h to addr.h 2013-02-05 09:41:14 -05:00
auth.h sunrpc: eliminate RPC_DEBUG 2014-11-24 17:31:46 -05:00
auth_gss.h sunrpc: remove __rcu annotation from struct gss_cl_ctx->gc_gss_ctx 2014-08-03 17:05:23 -04:00
bc_xprt.h SUNRPC: RPC callbacks may be split across several TCP segments 2014-02-11 14:01:20 -05:00
cache.h sunrpc: prepare NFS for 2038 2013-08-19 09:55:01 -04:00
clnt.h SUNRPC: NULL utsname dereference on NFS umount during namespace cleanup 2015-02-03 16:40:17 -05:00
debug.h sunrpc: make debugfs file creation failure non-fatal 2015-03-31 14:15:08 -04:00
gss_api.h svcrpc: store gss mech in svc_cred 2013-07-01 17:23:06 -04:00
gss_asn1.h
gss_err.h
gss_krb5.h sunrpc: remove "ec" argument from encrypt_v2 operation 2014-08-03 17:05:24 -04:00
gss_krb5_enctypes.h
metrics.h SUNRPC: Fix a compile error when #undef CONFIG_PROC_FS 2015-02-12 08:31:38 -05:00
msg_prot.h nfsd4: check backchannel attributes on create_session 2013-04-09 16:53:56 -04:00
rpc_pipe_fs.h sunrpc: replace sunrpc_net->gssd_running flag with a more reliable check 2013-12-06 13:06:31 -05:00
rpc_rdma.h xprtrdma: Clean up hdrlen 2015-01-30 10:47:48 -05:00
sched.h sunrpc: eliminate RPC_TRACEPOINTS 2014-11-24 17:33:12 -05:00
stats.h
svc.h sunrpc/lockd: fix references to the BKL 2015-01-23 10:29:12 -05:00
svc_rdma.h Merge branch 'for-3.20' of git://linux-nfs.org/~bfields/linux 2015-02-12 10:39:41 -08:00
svc_xprt.h sunrpc: eliminate the XPT_DETACHED flag 2014-12-01 12:45:26 -07:00
svcauth.h svcrpc: store gss mech in svc_cred 2013-07-01 17:23:06 -04:00
svcauth_gss.h
svcsock.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-04-12 17:31:22 -07:00
timer.h
types.h
xdr.h rpc: define xdr_restrict_buflen 2014-05-30 17:32:01 -04:00
xprt.h SUNRPC: Remove the redundant XPRT_CONNECTION_CLOSE flag 2015-02-09 11:26:06 -05:00
xprtrdma.h xprtrdma: Remove RPCRDMA_PERSISTENT_REGISTRATION macro 2014-07-31 16:22:59 -04:00
xprtsock.h sunrpc: add tracepoints in xs_tcp_data_recv 2014-11-24 12:53:35 -05:00