Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 17:11:44 +0100
From:      Joerg Wunsch <j@uriah.heep.sax.de>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Robert Watson <rwatson@FreeBSD.org>, Greg Lehey <grog@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/gnu/usr.bin/man/man Makefile man.c src/etc/mtree BSD.local.dist BSD.usr.dist BSD.x11-4.dist BSD.x11.dist
Message-ID:  <20020116171144.C18043@uriah.heep.sax.de>
In-Reply-To: <20020116174352.C13904@sunbay.com>; from ru@FreeBSD.org on Wed, Jan 16, 2002 at 05:43:52PM %2B0200
References:  <20020116132917.K78030@wantadilla.lemis.com> <Pine.NEB.3.96L.1020115224951.59548D-100000@fledge.watson.org> <20020116154210.A74132@uriah.heep.sax.de> <20020116174352.C13904@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Ruslan Ermilov wrote:

> All you need to do is to change the ownership on catpages holding
> directories back to ``man'', and install man(1) setuid ``man''.

...until the next "make installworld".  That's why i'm asking for
a knob in /etc/make.conf.  setuidperl can get its suid bit `sticky'
by the same way.

> But because it was proven to be insecure in many ways (the most
> important leak is a customized environment), I don't like the idea
> of even putting the required knobs back to src/.

But all that can be compromised is user "man", isn't it?  I don't
care much about this.

Get me right, it's OK by me to put a big warning above that knob
into /etc/defaults/make.conf.  But for sites less concerned about
security (like my home computer), compromising the "man" account
by the only other user on my machine (that's my wife :) isn't
anything i would care much about.  Even though the machine is
pretty fast, i prefer the cached catpages for efficiency.  (setuid
root binaries are a totally different matter, since they might
always serve as a target by a potential intruder.  But i don't
think such an intruder would gain much by breaking a setuid man
man(1), and then replace all my catpages. ;-)

> > I hope man(1)
> > is smart enough to handle that situation, and would reformat
> > the more recent man source instead of displaying the stale
> > catpage then.

> Yes, man(1) handles this.

OK, fine.

> Also, catman(1) doesn't re-catman
> the entire tree by default:

I know, this was one of Wolfram's design goals when he rewrote
it. ;-)

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

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




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