Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2001 01:23:56 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        David Wolfskill <david@catwhisker.org>, murrary@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/30420: "make install" for stallion tries to write to /usr/src
Message-ID:  <20010908012356.B63349@xor.obsecurity.org>
In-Reply-To: <200109080340.f883e2n94999@freefall.freebsd.org>; from david@catwhisker.org on Fri, Sep 07, 2001 at 08:40:02PM -0700
References:  <200109080340.f883e2n94999@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--U+BazGySraz5kW0T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 07, 2001 at 08:40:02PM -0700, David Wolfskill wrote:

>  Further analysis (catalyzed by others' reports of failures at the same
>  place) shows that my earlier assertions about trying to write to
>  /usr/src are likely wildly inaccurate.
> =20
>  Rather, the problem seem to be the mode of the created files:

Yes, murray's recent import (into RELENG_4 only, these files are
apparently not updated in HEAD!) changed the file modes from 444 to
440 in the .uu files.

>  dhcp-140[1] cd /usr/src/usr.sbin/stallion
>  dhcp-140[2] ls -la {,/usr/obj/`pwd`/}bootcode
>  /usr/obj//usr/src/usr.sbin/stallion/bootcode:
>  total 79
>  drwxrwxr-x  2 root  wheel    512 Sep  7 06:57 .
>  drwxrwxr-x  6 root  wheel    512 Sep  7 05:50 ..
>  -r--r-----  1 root  wheel  31056 Sep  7 06:57 2681.sys
>  -r--r-----  1 root  wheel  41760 Sep  7 06:57 cdk.sys
>  -rw-rw-r--  1 root  wheel   4233 Sep  7 06:57 stl.4.gz
> =20
>  bootcode:
>  total 116
>  drwxrwxr-x  3 david  wheel    512 Sep  7 10:57 .
>  drwxrwxr-x  7 david  wheel    512 Aug 31 05:26 ..
>  -rw-rw-r--  1 david  wheel  42912 Aug 31 05:26 2681.sys.uu
>  drwxrwxr-x  2 david  wheel    512 Aug 31 05:26 CVS
>  -rw-rw-r--  1 david  wheel    401 Sep  7 10:57 Makefile
>  -rw-rw-r--  1 david  wheel  57657 Aug 31 05:26 cdk.sys.uu
>  -rw-rw-r--  1 david  wheel  12475 Aug 31 05:26 stl.4
>  dhcp-140[3]=20
> =20
> =20
>  Since "root" on the client machine is treated as neither the root
>  user nor a member of the wheel group (by default), the attempt
>  to read the generated files fails, thus causing the install to fail.
> =20
>  Sorry for the confusion; it still seems that there's a problem, though.
>  Perhaps the "make buildworld" step could cause the generated files to
>  have a less-restrictive mode...?

Nah, they just need to be changed back to mode 444 like they were :)

This is a trivial change which could be done pre-release, with releng
approval.

Kris

--U+BazGySraz5kW0T
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7mdWcWry0BWjoQKURAs2hAJwKzpD1Ec8EQfPMU/EXjjCwuECihACfRN+C
qZCYnk5Yheoyp6Qxjtu7i7c=
=nC90
-----END PGP SIGNATURE-----

--U+BazGySraz5kW0T--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010908012356.B63349>