You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] selinux: eliminate selinux_task_ctxid
Eliminate selinux_task_ctxid since it duplicates selinux_task_get_sid. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Acked-by: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
89fa30242f
commit
62bac0185a
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user