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
[-- Attachment #1 --]
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.
>
> 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
>
> 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]
>
>
> 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.
>
> 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
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010908012356.B63349>
