Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30735
b: refs/heads/master
c: 28eba5b
h: refs/heads/master
i:
  30733: 63f4a2a
  30731: 48af543
  30727: 04ad84e
  30719: 9991833
v: v3
  • Loading branch information
Michael LeMay authored and Linus Torvalds committed Jun 28, 2006
1 parent 8774592 commit 3b728a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 76b67ed9dce69a6a329cdd66f94af1787f417b62
refs/heads/master: 28eba5bf9d4bf3ba4d58d985abf3a2903b7f2125
6 changes: 4 additions & 2 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1532,8 +1532,9 @@ static int selinux_bprm_set_security(struct linux_binprm *bprm)
/* Default to the current task SID. */
bsec->sid = tsec->sid;

/* Reset create and sockcreate SID on execve. */
/* Reset fs, key, and sock SIDs on execve. */
tsec->create_sid = 0;
tsec->keycreate_sid = 0;
tsec->sockcreate_sid = 0;

if (tsec->exec_sid) {
Expand Down Expand Up @@ -2586,9 +2587,10 @@ static int selinux_task_alloc_security(struct task_struct *tsk)
tsec2->osid = tsec1->osid;
tsec2->sid = tsec1->sid;

/* Retain the exec, create, and sock SIDs across fork */
/* Retain the exec, fs, key, and sock SIDs across fork */
tsec2->exec_sid = tsec1->exec_sid;
tsec2->create_sid = tsec1->create_sid;
tsec2->keycreate_sid = tsec1->keycreate_sid;
tsec2->sockcreate_sid = tsec1->sockcreate_sid;

/* Retain ptracer SID across fork, if any.
Expand Down

0 comments on commit 3b728a5

Please sign in to comment.