diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-01-15 14:11:05 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-01-15 14:11:05 +0000 |
commit | 30843b9337a77861edd3d0bf617ad09c1cf6a084 (patch) | |
tree | d8f87c866c4947f8938b35454d7ce942d7c4658e /etc/mtree/BSD.usr.dist | |
parent | f1ff35aecb5f033c16032b3138d6eb176d233aec (diff) | |
download | src-30843b9337a77861edd3d0bf617ad09c1cf6a084.tar.gz src-30843b9337a77861edd3d0bf617ad09c1cf6a084.zip |
Do not install man(1) setuid ``man''.
The catpaging and setuidness features of man(1) combined make
it vulnerable to a number of security attacks. Specifically,
it was possible to overwrite system catpages with arbitrarily
contents by either setting up a symlink to a directory holding
system catpages, or by writing custom -mdoc or -man groff(1)
macro packages and setting up GROFF_TMAC_PATH in environment
to point to them. (See PR below for details).
This means man(1) can no longer create system catpages on a
regular user's behalf. (It is still able to if the user has
write permissions to the directory holding catpages, e.g.,
user's own manpages, or if the running user is ``root''.)
To create and install catpages during ``make world'', please
set MANBUILDCAT=YES in /etc/make.conf. To rebuild catpages
on a weekly basis, please set weekly_catman_enable="YES" in
/etc/periodic.conf.
PR: bin/32791
Notes
Notes:
svn path=/head/; revision=89390
Diffstat (limited to 'etc/mtree/BSD.usr.dist')
-rw-r--r-- | etc/mtree/BSD.usr.dist | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist index d65480e45ba5..14b5deec167f 100644 --- a/etc/mtree/BSD.usr.dist +++ b/etc/mtree/BSD.usr.dist @@ -645,7 +645,6 @@ .. .. man -/set uname=man cat1 .. cat1aout @@ -678,7 +677,7 @@ .. catn .. - en.ISO8859-1 uname=root + en.ISO8859-1 cat1 .. cat1aout @@ -712,7 +711,7 @@ catn .. .. - ja uname=root + ja cat1 .. cat2 @@ -733,7 +732,6 @@ .. catn .. -/set uname=root man1 .. man2 @@ -970,7 +968,7 @@ .. perl man - cat3 uname=man + cat3 .. man3 .. |