Skip to content

Commit

Permalink
cred: export get_task_cred().
Browse files Browse the repository at this point in the history
There is no reason that modules should not be able
to use this, and NFS will need it when converted to
use 'struct cred'.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
NeilBrown authored and Anna Schumaker committed Dec 19, 2018
1 parent 97d0fb2 commit a6d8e76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/cred.c
Original file line number Diff line number Diff line change
@@ -200,6 +200,7 @@ const struct cred *get_task_cred(struct task_struct *task)
rcu_read_unlock();
return cred;
}
EXPORT_SYMBOL(get_task_cred);

/*
* Allocate blank credentials, such that the credentials can be filled in at a

0 comments on commit a6d8e76

Please sign in to comment.