All of lore.kernel.org
 help / color / mirror / Atom feed
From: john.johansen@canonical.com (John Johansen)
To: linux-security-module@vger.kernel.org
Subject: [PATCH] TOMOYO: Switch from per "struct cred" blob to per "struct task_struct" blob.
Date: Sun, 12 Mar 2017 16:56:14 -0700	[thread overview]
Message-ID: <02803f61-29e6-97ea-7ed2-babce48206da@canonical.com> (raw)
In-Reply-To: <alpine.LRH.2.20.1703131012360.2317@namei.org>

On 03/12/2017 04:17 PM, James Morris wrote:
> On Sun, 12 Mar 2017, Djalal Harouni wrote:
> 
>> ...
> 
> Please trim quotes when replying.
> 
>> Is it possible to adapt some stacking bits from Casey's patches and
>> stack this security field ? or at least try first to stack
>> task->security without having to stack all the others cred->security,
>> inode->security ... ?
>>
>> IMO it would be better if the first LSM user gets this right, or at
>> least the second LSM that uses the field without having to wait for
>> the support of all security fields stacking.
> 
> As Tetsuo mentions in the changelog, he aims to revive the hook before 
> modifying it for stacking.  I would also want to see a strong use-case for 
> the stacking aspect (e.g. an existing LSM planning to use it, or as part 
> of a proposal to merge a new LSM).
> 
To add to this Tetsuo did have versions with some stacking infrastructure
in them, and we asked that the stacking be separated, to keep the patch
as simple as possible, and separate it from the stacking discussion.

Once this goes in, I expect stacking patches and discussion will follow

> JJ: can you confirm that you'll use the revived hook in AppArmor?  I can 
> see your acked-by but the context of it is lost due to the lack of mail 
> archives.
> 
Yes, it will cleanup apparmor's abuse of the cred, storing the info for
a tasks setexecon and change_hat tokens. We can get away with doing this
on the cred like selinux but it is worse for apparmor as its not just
copying a secid around, but involves a manipulating a couple of reference
counts.

I floated a patch for apparmor to use the task security field in support
of this in reply last time Tetsuo posted this up. I can reply with the patch
again to add it to this thread if you would like.

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2017-03-12 23:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12  4:41 [PATCH] TOMOYO: Switch from per "struct cred" blob to per "struct task_struct" blob Tetsuo Handa
2017-03-12 21:12 ` Djalal Harouni
2017-03-12 23:17   ` James Morris
2017-03-12 23:56     ` John Johansen [this message]
2017-03-13  5:59       ` James Morris
2017-03-28 11:02 Tetsuo Handa
2017-03-28 15:26 ` Casey Schaufler
2017-03-30 11:09   ` Tetsuo Handa
2017-03-30 15:06     ` Casey Schaufler
2017-03-31  0:52       ` Tetsuo Handa
2017-03-31 16:09         ` Casey Schaufler
2017-04-01  3:32           ` Tetsuo Handa

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=02803f61-29e6-97ea-7ed2-babce48206da@canonical.com \
    --to=john.johansen@canonical.com \
    --cc=linux-security-module@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.