linux-stable/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
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
cache.h
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
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
rpc_pipe_fs.h
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
svcauth_gss.h
svcsock.h
timer.h
types.h
xdr.h
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