xfs
[Top] [All Lists]

Re: FIX: World-writeable files repair script

To: Eric Sandeen <sandeen@xxxxxxx>
Subject: Re: FIX: World-writeable files repair script
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Fri, 03 Aug 2001 13:52:27 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Thu, 02 Aug 2001 21:45:52 EST." <3B6A1060.D895B2F6@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Thu, 02 Aug 2001 21:45:52 -0500, 
Eric Sandeen <sandeen@xxxxxxx> wrote:
>Keith Owens wrote:
> 
>> Add  /lib/modules/*/modules.dep.  If that file is world writable you
>> have a local root exploit.  Due to the kernel bug, this has occurred on
>> Slackware installs.  As part of that exploit, people reported that
>> /var/log/wtmp and /var/run/utmp are also created with the wrong mask.
>> Not exploitable AFAIK but you can hide tasks if utmp is world writable.
>
>modules.dep comes from the Red Hat kernel RPMs, and it doesn't appear to
>be re-generated or modified during the install, so I think we're fine
>here.

Yes and no.  If a user builds their own kernel and does not run depmod
before rebooting and the kernel has the umask bug and the init scripts
do not set umask then modules.dep is created with the wrong mode.
Unfortunately some users managed to meet all the requirements :(  The
problem particularly affects cross compiles because depmod does not run
in cross compile mode.


<Prev in Thread] Current Thread [Next in Thread>