Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146442
b: refs/heads/master
c: fbeb4a9
h: refs/heads/master
v: v3
  • Loading branch information
Serge E. Hallyn authored and James Morris committed Jun 2, 2009
1 parent 8e17f6c commit 233a8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: 13b297d943828c4594527a2bd9c30ecd04e37886
refs/heads/master: fbeb4a9c20d00e2550156f9e5a34473fbde59de2
9 changes: 1 addition & 8 deletions trunk/security/tomoyo/tomoyo.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,10 @@ static inline struct tomoyo_domain_info *tomoyo_domain(void)
return current_cred()->security;
}

/* Caller holds tasklist_lock spinlock. */
static inline struct tomoyo_domain_info *tomoyo_real_domain(struct task_struct
*task)
{
/***** CRITICAL SECTION START *****/
const struct cred *cred = get_task_cred(task);
struct tomoyo_domain_info *domain = cred->security;

put_cred(cred);
return domain;
/***** CRITICAL SECTION END *****/
return task_cred_xxx(task, security);
}

#endif /* !defined(_SECURITY_TOMOYO_TOMOYO_H) */

0 comments on commit 233a8a7

Please sign in to comment.