CRED: Wrap current->cred and a few other accessors
Wrap current->cred and a few other accessors to hide their actual implementation. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: James Morris <jmorris@namei.org> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:

committed by
James Morris

parent
f1752eec61
commit
86a264abe5
@@ -164,7 +164,7 @@ int smk_curacc(char *obj_label, u32 mode)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = smk_access(current->cred->security, obj_label, mode);
|
||||
rc = smk_access(current_security(), obj_label, mode);
|
||||
if (rc == 0)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user