mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-03 09:00:51 +00:00
Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: chcat patch. Date: Fri, 07 Nov 2008 09:39:32 -0500 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Prevent chcat from expanding number of categories above max size of command line. Arbitrarily picked 25. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkkUUyQACgkQrlYvE4MpobMDDwCg0DMLERlnHZyVmORa9de9f5tf fQsAoJZpO646H5CFuXZuW6htHpPfHz/z =4OcI -----END PGP SIGNATURE----- Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
parent
5cbb573fa5
commit
8b092bade5
@ -291,6 +291,8 @@ def expandCats(cats):
|
||||
for i in c.split(","):
|
||||
if i not in newcats:
|
||||
newcats.append(i)
|
||||
if len(newcats) > 25:
|
||||
return cats
|
||||
return newcats
|
||||
|
||||
def translate(cats):
|
||||
|
Loading…
Reference in New Issue
Block a user