cred: export get_task_cred().
authorNeilBrown <neilb@suse.com>
Mon, 3 Dec 2018 00:30:30 +0000 (11:30 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 19 Dec 2018 18:52:44 +0000 (13:52 -0500)
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>
kernel/cred.c

index ba60162249e86dc1553b31c67e2f1e14a1fcdcf1..21f4a97085b4041bcbe9b23568aec7bed935f21f 100644 (file)
@@ -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