Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35633
b: refs/heads/master
c: 62bac01
h: refs/heads/master
i:
  35631: a9d7b0d
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed Sep 26, 2006
1 parent a1e4467 commit 7b3be7f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 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: 89fa30242facca249aead2aac03c4c69764f911c
refs/heads/master: 62bac0185ad3dfef11d9602980445c54d45199c6
15 changes: 0 additions & 15 deletions trunk/include/linux/selinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op,
*/
void selinux_audit_set_callback(int (*callback)(void));

/**
* selinux_task_ctxid - determine a context ID for a process.
* @tsk: the task object
* @ctxid: ID value returned via this
*
* On return, ctxid will contain an ID for the context. This value
* should only be used opaquely.
*/
void selinux_task_ctxid(struct task_struct *tsk, u32 *ctxid);

/**
* selinux_ctxid_to_string - map a security context ID to a string
* @ctxid: security context ID to be converted.
Expand Down Expand Up @@ -166,11 +156,6 @@ static inline void selinux_audit_set_callback(int (*callback)(void))
return;
}

static inline void selinux_task_ctxid(struct task_struct *tsk, u32 *ctxid)
{
*ctxid = 0;
}

static inline int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen)
{
*ctx = NULL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static int audit_filter_rules(struct task_struct *tsk,
logged upon error */
if (f->se_rule) {
if (need_sid) {
selinux_task_ctxid(tsk, &sid);
selinux_get_task_sid(tsk, &sid);
need_sid = 0;
}
result = selinux_audit_rule_match(sid, f->type,
Expand Down
9 changes: 0 additions & 9 deletions trunk/security/selinux/exports.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@
#include "security.h"
#include "objsec.h"

void selinux_task_ctxid(struct task_struct *tsk, u32 *ctxid)
{
struct task_security_struct *tsec = tsk->security;
if (selinux_enabled)
*ctxid = tsec->sid;
else
*ctxid = 0;
}

int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen)
{
if (selinux_enabled)
Expand Down

0 comments on commit 7b3be7f

Please sign in to comment.