trunk: fix do not userspace commons in kernel version of av_permissions.h.

This commit is contained in:
Chris PeBenito 2007-10-16 19:05:27 +00:00
parent 32c05ccbcd
commit e83edee5d2

View File

@ -344,6 +344,7 @@ class Flask:
count = 0 count = 0
shift = 0 shift = 0
for p in self.common[common]: for p in self.common[common]:
if not (mode == self.KERNEL and self.user_commons[common]):
columnA = "#define COMMON_%s__%s " % (common.upper(), p.upper()) columnA = "#define COMMON_%s__%s " % (common.upper(), p.upper())
columnA += "".join([" " for i in range(width - len(columnA))]) columnA += "".join([" " for i in range(width - len(columnA))])
results.append("%s%s\n" % (columnA, self.createUL(count))) results.append("%s%s\n" % (columnA, self.createUL(count)))
@ -391,8 +392,7 @@ class Flask:
results = [] results = []
results.append(self.autogen) results.append(self.autogen)
for common in self.commons: for common in self.commons:
user = self.user_commons[common] if not (mode == self.KERNEL and self.user_commons[common]):
if not (mode == self.KERNEL and user):
results.append("TB_(common_%s_perm_to_string)\n" % common) results.append("TB_(common_%s_perm_to_string)\n" % common)
for p in self.common[common]: for p in self.common[common]:
results.append(" S_(\"%s\")\n" % p) results.append(" S_(\"%s\")\n" % p)