freebsd-skq/sys/netncp
Robert Watson bdcfa9589b In ncp_conn_alloc(), a new credential pointer, 'owner', is set up to point
at the credential to be used by the connection.  However, the pointer's
value was ignored when actually setting hcp->nc_owner.

(1) Do set nc_owner to the owner pointer value so that the credential is
    not discarded after being carefully configured.

(2) In the case where we create a new credential with modified uid, copy
    the existing credential to initialize non-uid fields to existing
    values, which will lead to a fully initialized MAC label, groups, etc.

Found with:	Coverity Prevent(tm)
CID:		2226
2007-05-27 17:14:33 +00:00
..
ncp_cfg.h
ncp_conn.c In ncp_conn_alloc(), a new credential pointer, 'owner', is set up to point 2007-05-27 17:14:33 +00:00
ncp_conn.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_crypt.c
ncp_file.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_lib.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_login.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_mod.c Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
ncp_ncp.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_ncp.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_nls.c avoid potential null ptr derefs 2005-02-23 22:44:38 +00:00
ncp_nls.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_rcfile.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_rq.c Change API of mb_copy_t in libmchain so that netsmb can handle 2005-07-29 13:22:37 +00:00
ncp_rq.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_sock.c Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
ncp_sock.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_subr.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp_subr.h Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
ncp_user.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncp.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
ncpio.h
nwerror.h