From: Valdis.Kletnieks@vt.edu
To: "Lasse Kärkkäinen" <tronic+bpsk@trn.iki.fi>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Securing a system with limits.conf
Date: Mon, 27 Jul 2009 18:46:53 -0400 [thread overview]
Message-ID: <67027.1248734813@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Sun, 26 Jul 2009 07:10:41 +0300." <4A6BD741.2070807@trn.iki.fi>
[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]
On Sun, 26 Jul 2009 07:10:41 +0300, =?ISO-8859-1?Q?Lasse_K=E4rkk=E4inen?= said:
> - How should things be configured to reliably prevent non-priveleged
> users from DoS'ing a machine.
This depends on your threat model. What are you trying to defend against:
1) Clued user doing something stupid on their laptop?
2) Unclued user doing the same?
3) Clued user who just got bitten by an exploit in Firefox?
4) Clued user doing something stupid on a large database/web server?
5) Malicious user on a multi-user timesharing system?
bash$ :(){ :|:&};:
Consider the above line of bash code, in each of the 5 scenarios. Same
attack, but the configuration settings you use to deal with it may be
vastly different.
Now repeat the analysis, but assume you have a determined attacker who has
acquired access to *3* different logins on the machine and can use them
simultaneously, in collusion. Now try to come up with a solution that
doesn't annoy the 3 users in question when they're legitimately logged on.
Bottom line: At best, you can make it more difficult for a local user to DoS
the box. You can't *prevent* it unless you're willing to impose a lot of
limits your users won't like.
And sometimes, the correct security tool is not a system tunable setting,
but a baseball bat.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
prev parent reply other threads:[~2009-07-27 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-26 4:10 Lasse Kärkkäinen
2009-07-27 22:46 ` Valdis.Kletnieks [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67027.1248734813@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=tronic+bpsk@trn.iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®