瀏覽代碼

Merge tag 'apparmor-pr-2018-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor

Pull apparmor fix from John Johansen:
 "A fix for an issue syzbot discovered last week:

   - Fix for bad debug check when converting secids to secctx"

* tag 'apparmor-pr-2018-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor:
  apparmor: fix bad debug check in apparmor_secid_to_secctx()
Linus Torvalds 7 年之前
父節點
當前提交
db44bf4b47
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      security/apparmor/secid.c

+ 0 - 1
security/apparmor/secid.c

@@ -79,7 +79,6 @@ int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
 	struct aa_label *label = aa_secid_to_label(secid);
 	struct aa_label *label = aa_secid_to_label(secid);
 	int len;
 	int len;
 
 
-	AA_BUG(!secdata);
 	AA_BUG(!seclen);
 	AA_BUG(!seclen);
 
 
 	if (!label)
 	if (!label)