Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309816
b: refs/heads/master
c: f23ca33
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Al Viro committed May 24, 2012
1 parent 16a70fe commit 96e353f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dea649b8ac1861107c5d91e1a71121434fc64193
refs/heads/master: f23ca335462e3c84f13270b9e65f83936068ec2c
2 changes: 0 additions & 2 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,6 @@ struct task_struct {
* credentials (COW) */
const struct cred __rcu *cred; /* effective (overridable) subjective task
* credentials (COW) */
struct cred *replacement_session_keyring; /* for KEYCTL_SESSION_TO_PARENT */

char comm[TASK_COMM_LEN]; /* executable name excluding path
- access with [gs]et_task_comm (which lock
it with task_lock())
Expand Down
9 changes: 0 additions & 9 deletions trunk/kernel/cred.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,6 @@ void exit_creds(struct task_struct *tsk)
validate_creds(cred);
alter_cred_subscribers(cred, -1);
put_cred(cred);

cred = (struct cred *) tsk->replacement_session_keyring;
if (cred) {
tsk->replacement_session_keyring = NULL;
validate_creds(cred);
put_cred(cred);
}
}

/**
Expand Down Expand Up @@ -396,8 +389,6 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)
struct cred *new;
int ret;

p->replacement_session_keyring = NULL;

if (
#ifdef CONFIG_KEYS
!p->cred->thread_keyring &&
Expand Down

0 comments on commit 96e353f

Please sign in to comment.