trunk: fix do not userspace commons in kernel version of av_permissions.h.
This commit is contained in:
parent
32c05ccbcd
commit
e83edee5d2
@ -344,6 +344,7 @@ class Flask:
|
||||
count = 0
|
||||
shift = 0
|
||||
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 += "".join([" " for i in range(width - len(columnA))])
|
||||
results.append("%s%s\n" % (columnA, self.createUL(count)))
|
||||
@ -391,8 +392,7 @@ class Flask:
|
||||
results = []
|
||||
results.append(self.autogen)
|
||||
for common in self.commons:
|
||||
user = self.user_commons[common]
|
||||
if not (mode == self.KERNEL and user):
|
||||
if not (mode == self.KERNEL and self.user_commons[common]):
|
||||
results.append("TB_(common_%s_perm_to_string)\n" % common)
|
||||
for p in self.common[common]:
|
||||
results.append(" S_(\"%s\")\n" % p)
|
||||
|
Loading…
Reference in New Issue
Block a user