1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/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
ncp_crypt.c
ncp_file.h
ncp_lib.h
ncp_login.c
ncp_mod.c
ncp_ncp.c
ncp_ncp.h
ncp_nls.c
ncp_nls.h
ncp_rcfile.h
ncp_rq.c
ncp_rq.h
ncp_sock.c
ncp_sock.h
ncp_subr.c
ncp_subr.h
ncp_user.h
ncp.h
ncpio.h
nwerror.h