mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [RFC] "Text file busy" when overwriting libraries
@ 2001-10-14 14:50 Samium Gromoff
  0 siblings, 0 replies; 11+ messages in thread
From: Samium Gromoff @ 2001-10-14 14:50 UTC (permalink / raw)
  To: linux-kernel

> This isnt a problem worth solving. Shared libraries are managed by the
> superuser. The shared library tools already do the right thing. The
> superuser can equally reboot the machine or reformat the disk by accident
> anyway.
  Sounds _very_ true for me...

cheers, Samium Gromoff


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Security question: "Text file busy" overwriting executables but
@ 2001-10-05 16:58 Linus Torvalds
  2001-10-14  8:02 ` [RFC] "Text file busy" when overwriting libraries Eric W. Biederman
  0 siblings, 1 reply; 11+ messages in thread
From: Linus Torvalds @ 2001-10-05 16:58 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: Alan Cox, Alexander Viro, linux-kernel


On 5 Oct 2001, Eric W. Biederman wrote:
> > The MAP_DENYWRITE rule was added a long time ago because people found actual
> > workable DoS attacks
>
> Do you have any details.  I would like to figure out what it takes to
> export MAP_DENYWRITE safely to userspace.

I think it literally was /var/run/[uw]tmp, and using MAP_DENYWRITE to
disable all logins.

But it pretty much covers _any_ logfiles that are readable (and thus
openable) by users.

> Currently checking to see if the file is executable looks good
> enough.

[ executable by the user in question, not just anybody ]

Yes, I suspect it is.

> The fix for bad permission (during a DOS attack) is either:
> 	chmod correct_permissions foo
> 	lsof foo | xargs kill

Well, if you cannot log in as root, it doesn't much matter what the "fix"
is, so it's better to be safe than sorry.

		Linus


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-10-15 12:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-14 14:50 [RFC] "Text file busy" when overwriting libraries Samium Gromoff
  -- strict thread matches above, loose matches on Subject: below --
2001-10-05 16:58 Security question: "Text file busy" overwriting executables but Linus Torvalds
2001-10-14  8:02 ` [RFC] "Text file busy" when overwriting libraries Eric W. Biederman
2001-10-14 12:08   ` Alan Cox
2001-10-14 20:48     ` Eric W. Biederman
2001-10-15  1:44       ` Alan Cox
2001-10-15  2:06         ` Linus Torvalds
2001-10-15 10:11           ` Eric W. Biederman
2001-10-15 11:54             ` Alan Cox
2001-10-15 11:57               ` Alexander Viro
2001-10-15 12:08                 ` Alan Cox
2001-10-15 12:11                   ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®