trunk: do not emit S_(0, 0, 0) in kernel headers for userspace classes that inherit commons.

This commit is contained in:
Chris PeBenito 2007-10-16 16:02:51 +00:00
parent 36627094e8
commit 3a9096d94f

View File

@ -310,9 +310,7 @@ class Flask:
i = self.inherits[c]
count = len(self.common[i])
user = self.userspace.has_key(c)
if mode == self.KERNEL and user:
results.append(" S_(0, 0, 0)\n")
else:
if not (mode == self.KERNEL and user):
results.append(" S_(SECCLASS_%s, %s, %s)\n" % (c.upper(), i, self.createUL(count)))
return results