Re: [PATCH 4/7] KEYS: Add keyctl function to get a security label

2007-12-05 Thread Casey Schaufler
--- David Howells <[EMAIL PROTECTED]> wrote: > Stephen Smalley <[EMAIL PROTECTED]> wrote: > > > inode_getsecurity and getprocattr directly return the strings. > > Admittedly, the whole interface could be cleaned up and made far more > > consistent, but I don't think he necessarily has to go thro

Re: [PATCH 4/7] KEYS: Add keyctl function to get a security label

2007-12-05 Thread David Howells
Stephen Smalley <[EMAIL PROTECTED]> wrote: > inode_getsecurity and getprocattr directly return the strings. > Admittedly, the whole interface could be cleaned up and made far more > consistent, but I don't think he necessarily has to go through the > getsecid + secid_to_secctx sequence if he only

Re: [PATCH 4/7] KEYS: Add keyctl function to get a security label

2007-12-05 Thread Stephen Smalley
On Wed, 2007-12-05 at 12:12 -0800, Casey Schaufler wrote: > --- David Howells <[EMAIL PROTECTED]> wrote: > > > Add a keyctl() function to get the security label of a key. > > > > The following is added to Documentation/keys.txt: > > > > (*) Get the LSM security context attached to a key. > > >

Re: [PATCH 4/7] KEYS: Add keyctl function to get a security label

2007-12-05 Thread Casey Schaufler
--- David Howells <[EMAIL PROTECTED]> wrote: > Add a keyctl() function to get the security label of a key. > > The following is added to Documentation/keys.txt: > > (*) Get the LSM security context attached to a key. > > long keyctl(KEYCTL_GET_SECURITY, key_serial_t key, char *buffer, >

[PATCH 4/7] KEYS: Add keyctl function to get a security label

2007-12-05 Thread David Howells
Add a keyctl() function to get the security label of a key. The following is added to Documentation/keys.txt: (*) Get the LSM security context attached to a key. long keyctl(KEYCTL_GET_SECURITY, key_serial_t key, char *buffer, size_t buflen) This function retur