trunk: do not emit S_(0, 0, 0) in kernel headers for userspace classes that inherit commons.
This commit is contained in:
parent
36627094e8
commit
3a9096d94f
@ -310,9 +310,7 @@ class Flask:
|
|||||||
i = self.inherits[c]
|
i = self.inherits[c]
|
||||||
count = len(self.common[i])
|
count = len(self.common[i])
|
||||||
user = self.userspace.has_key(c)
|
user = self.userspace.has_key(c)
|
||||||
if mode == self.KERNEL and user:
|
if not (mode == self.KERNEL and user):
|
||||||
results.append(" S_(0, 0, 0)\n")
|
|
||||||
else:
|
|
||||||
results.append(" S_(SECCLASS_%s, %s, %s)\n" % (c.upper(), i, self.createUL(count)))
|
results.append(" S_(SECCLASS_%s, %s, %s)\n" % (c.upper(), i, self.createUL(count)))
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user