mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
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:
parent
f1752eec61
commit
86a264abe5
27 changed files with 271 additions and 162 deletions
|
@ -112,6 +112,7 @@ static inline struct mqueue_inode_info *MQUEUE_I(struct inode *inode)
|
|||
static struct inode *mqueue_get_inode(struct super_block *sb, int mode,
|
||||
struct mq_attr *attr)
|
||||
{
|
||||
struct user_struct *u = current_user();
|
||||
struct inode *inode;
|
||||
|
||||
inode = new_inode(sb);
|
||||
|
@ -126,7 +127,6 @@ static struct inode *mqueue_get_inode(struct super_block *sb, int mode,
|
|||
if (S_ISREG(mode)) {
|
||||
struct mqueue_inode_info *info;
|
||||
struct task_struct *p = current;
|
||||
struct user_struct *u = p->cred->user;
|
||||
unsigned long mq_bytes, mq_msg_tblsz;
|
||||
|
||||
inode->i_fop = &mqueue_file_operations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue