|
@@ -989,6 +989,7 @@ static void selinux_write_opts(struct seq_file *m,
|
|
|
continue;
|
|
|
default:
|
|
|
BUG();
|
|
|
+ return;
|
|
|
};
|
|
|
/* we need a comma before each option */
|
|
|
seq_putc(m, ',');
|
|
@@ -1442,6 +1443,7 @@ static int task_has_capability(struct task_struct *tsk,
|
|
|
printk(KERN_ERR
|
|
|
"SELinux: out of range capability %d\n", cap);
|
|
|
BUG();
|
|
|
+ return -EINVAL;
|
|
|
}
|
|
|
|
|
|
rc = avc_has_perm_noaudit(sid, sid, sclass, av, 0, &avd);
|