Re: [PATCH 3/3] CRED: Move the effective capabilities into the cred struct

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morgan <morgan@...>
Cc: David Howells <dhowells@...>, <viro@...>, <hch@...>, <sds@...>, <casey@...>, <linux-kernel@...>, <selinux@...>, <linux-security-module@...>
Date: Thursday, September 20, 2007 - 9:38 am

On Wed, 2007-09-19 at 21:11 -0700, Andrew Morgan wrote:

No. This has nothing to do about one process changing some other
process' capabilities. It has to do with being able to pass security
information around the kernel beyond the confines of the task struct.

This is needed in order to deal with asynchronous i/o where security
checks may have to be deferred, and where the task struct may no longer
be available.
One example would be a failover situation when doing deferred writes: if
the first choice of storage medium is unavailable, and the kernel tries
to fail the write over to another storage. On NFS that might involve
having to build up a new RPCSEC_GSS security context for the new server.
Currently, you cannot do this safely because all the security info is
cached in the task struct and much of it cannot be copied.

Trond
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Introduce credential record, David Howells, (Wed Sep 19, 12:17 pm)
[PATCH 1/3] CRED: Introduce a COW credentials record, David Howells, (Wed Sep 19, 12:17 pm)
Re: [PATCH 3/3] CRED: Move the effective capabilities into t..., Trond Myklebust, (Thu Sep 20, 9:38 am)