Date: Sat, 1 Sep 2001 11:20:50 -0400 (EDT) From: "Andrew R. Reiter" <arr@watson.org> To: Robert Watson <rwatson@FreeBSD.org> Cc: freebsd-audit@FreeBSD.org, freebsd-security@FreeBSD.org Subject: Re: setlogincontext() modifications. Message-ID: <Pine.NEB.3.96L.1010901111625.22496A-100000@fledge.watson.org> In-Reply-To: <Pine.NEB.3.96L.1010831165340.11217A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Actually yes... as of 4.4-RC, the following utilize setusercontext(): ftpd/ftpd.c: setusercontext(lc, pw, (uid_t)0, LOGIN_SETLOGIN|LOGIN_SETGROUP|LOGIN_SETPRIORITY| LOGIN_SETRESOURCES|LOGIN_SETUMASK); /* and code to reset */ rshd/rshd.c: if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETALL) != 0) On Fri, 31 Aug 2001, Robert Watson wrote: :I guess my response would actually be surprise that it isn't used already. ::-) Do those use setusercontext() at all? : :Robert N M Watson FreeBSD Core Team, TrustedBSD Project :robert@fledge.watson.org NAI Labs, Safeport Network Services : :On Wed, 22 Aug 2001, Andrew R. Reiter wrote: : :> Hi, :> :> I plan on doing some patches for adding setlogincontext() calls to: :> :> libexec/: :> atrun/atrun.c :> ftpd/ftpd.c :> rshd/rshd.c :> uucpd/uucpd.c :> :> as an initial step towards seeing how people react. If people can perhaps :> recommend a couple more from other parts of the tree that I could write :> patches for, that would be great. I ask this so that I can perhaps get a :> bit more of a reaction from some people as this type of patch will effect :> some network daemons etc... :> :> Thanks, :> :> Andrew :> :> *-------------................................................. :> | Andrew R. Reiter :> | arr@fledge.watson.org :> | "It requires a very unusual mind :> | to undertake the analysis of the obvious" -- A.N. Whitehead :> :> :> To Unsubscribe: send mail to majordomo@FreeBSD.org :> with "unsubscribe freebsd-audit" in the body of the message :> : : *-------------................................................. | Andrew R. Reiter | arr@fledge.watson.org | "It requires a very unusual mind | to undertake the analysis of the obvious" -- A.N. Whitehead To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010901111625.22496A-100000>