[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1260977452-2334-1-git-send-email-michael@laptop.org>
Date: Wed, 16 Dec 2009 10:30:49 -0500
From: Michael Stone <michael@...top.org>
To: Ulrich Drepper <drepper@...il.com>
Cc: Michael Stone <michael@...top.org>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, linux-security-module@...r.kernel.org,
"Andi Kleen" <andi@...stfloor.org>, "David Lang" <david@...g.hm>,
"Oliver Hartkopp" <socketcan@...tkopp.net>,
"Alan Cox" <alan@...rguk.ukuu.org.uk>,
"Herbert Xu" <herbert@...dor.apana.org.au>,
"Valdis Kletnieks" <Valdis.Kletnieks@...edu>,
"Bryan Donlan" <bdonlan@...il.com>,
"Evgeniy Polyakov" <zbr@...emap.net>,
"C. Scott Ananian" <cscott@...ott.net>,
"James Morris" <jmorris@...ei.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Bernie Innocenti" <bernie@...ewiz.org>,
"Mark Seaborn" <mrs@...hic-beasts.com>
Subject: Re: setrlimit(RLIMIT_NETWORK) vs. prctl(???)
Ulrich,
As promised, here's a draft based on prctl() for comparison with the
rlimit()-based approach presented in the first attempt.
It behaves as I expect in simple testing with busybox "nc" and I'll do a more
thorough test shortly. I'm sending it now because I think that it's good enough
to give a decent overview of what the end result of this implementation
strategy might look like.
Regards,
Michael
------
Michael Stone (3):
Security: Add prctl(PR_{GET,SET}_NETWORK) interface.
Security: Implement prctl(PR_SET_NETWORK, PR_NETWORK_OFF) semantics.
Security: Document prctl(PR_{GET,SET}_NETWORK).
Documentation/prctl_network.txt | 69 +++++++++++++++++++++++++++++++++++++++
include/linux/prctl.h | 7 ++++
include/linux/prctl_network.h | 7 ++++
include/linux/sched.h | 2 +
kernel/Makefile | 2 +-
kernel/fork.c | 2 +
kernel/prctl_network.c | 37 +++++++++++++++++++++
kernel/ptrace.c | 2 +
kernel/sys.c | 7 ++++
net/socket.c | 51 +++++++++++++++++++++-------
net/unix/af_unix.c | 19 +++++++++++
11 files changed, 191 insertions(+), 14 deletions(-)
create mode 100644 Documentation/prctl_network.txt
create mode 100644 include/linux/prctl_network.h
create mode 100644 kernel/prctl_network.c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists