mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serge@hallyn.com>
To: Andrew Morgan <morgan@kernel.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>,
	Chris Wright <chrisw@sous-sol.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Serge E. Hallyn" <serue@us.ibm.com>,
	sds@tycho.nsa.gov, linux-security-module@vger.kernel.org,
	linux-kernel@vger.kernel.org, kaigai@kaigai.gr.jp,
	casey@schaufler-ca.com
Subject: Re: [RFC] [PATCH 2/2] capabilities: implement 64-bit capabilities
Date: Thu, 18 Oct 2007 10:30:23 -0500	[thread overview]
Message-ID: <20071018153023.GA12123@vino.hallyn.com> (raw)
In-Reply-To: <47177B65.7040408@kernel.org>

Quoting Andrew Morgan (morgan@kernel.org):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Serge E. Hallyn wrote:
> > Quoting Chris Wright (chrisw@sous-sol.org):
> >> * Serge E. Hallyn (serge@hallyn.com) wrote:
> >>> I guess now that I've written this out, it seems pretty clear
> >>> that capget64() and capget64() are the way to go.  Any objections?
> >> How is capget64() different from capget() that supports 2 different
> >> header->versions (I thought that was the whole point of the versioned,
> >> rather opaque interface)?  I don't object to a new syscall, but I don't
> >> see why it's required to avoid breaking libcap.
> > 
> > Hmm, I guess it *works*, it's just harder to explain the "inconsistent"
> > behavior.  Now instead of saying "capget() will fail under certain
> > conditions while capget64() will always succeed", capget() will actually
> > fail under certain conditions only if you send in a certain header.
> > 
> > Again, once I've written it out, I guess it isn't *so* bad.
> 
> [I'm just wading back into a mass of neglected email. Long story.]
> 
> Chris is right, this is precisely why the interface is versioned, and
> there is at least one version of libcap that was written to support this
> versioning scheme

Ok - i actually didn't default to backward compatibility because I was
pretty sure you would object to it on the grounds that old userspace
might get unexpected behavior.  But I guess since all high caps should be
new ones for new features, it'll require new userspace to exploit
anyway.

> cvs -z3
> - -d:pserver:anonymous@cvs.linux-privs.sourceforge.net:/cvsroot/linux-privs
> co -r libcap-pre2 libcap
> 
> I'll try and unwind all the threads of email I've been neglecting and
> have something useful to say over the next few days.

Thanks.  I'll try to get a backward-compatible patch out today (again
just for rfc)  If not today, at least tomorrow.

thanks,
-serge

  reply	other threads:[~2007-10-18 15:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16  2:27 [PATCH 1/2 -mm] capabilities: clean up file capability reading Serge E. Hallyn
2007-10-16  2:31 ` [RFC] [PATCH 2/2] capabilities: implement 64-bit capabilities Serge E. Hallyn
2007-10-16 14:18   ` Stephen Smalley
2007-10-16 18:48     ` Serge E. Hallyn
2007-10-16 21:41     ` Serge E. Hallyn
2007-10-18  1:00       ` Andrew Morton
2007-10-18  2:59         ` Serge E. Hallyn
2007-10-18  3:13           ` Casey Schaufler
2007-10-18  3:20           ` Andrew Morton
2007-10-18  5:21           ` Chris Wright
2007-10-18 12:50             ` Serge E. Hallyn
2007-10-18 15:27               ` Andrew Morgan
2007-10-18 15:30                 ` Serge E. Hallyn [this message]
2007-10-18 15:30               ` Chris Wright

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=20071018153023.GA12123@vino.hallyn.com \
    --to=serge@hallyn.com \
    --cc=akpm@linux-foundation.org \
    --cc=casey@schaufler-ca.com \
    --cc=chrisw@sous-sol.org \
    --cc=kaigai@kaigai.gr.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=morgan@kernel.org \
    --cc=sds@tycho.nsa.gov \
    --cc=serue@us.ibm.com \
    /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®