Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 573083 Details for
Bug 781243
v7 info fails to capture modules tainted for multiple signs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
info test patch to parse tainted modules with multiple signs
info.patch (text/plain), 1.74 KB, created by
Greg Nichols
on 2012-03-27 14:33:12 UTC
(
hide
)
Description:
info test patch to parse tainted modules with multiple signs
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-03-27 14:33:12 UTC
Size:
1.74 KB
patch
obsolete
>Index: info.py >=================================================================== >--- info.py (revision 1236) >+++ info.py (working copy) >@@ -78,7 +78,7 @@ > success = False > > if tainted & Constants.TAINT_TECHPREVIEW_MODULE: >- modules = Command("cat /proc/modules").getStringList(regex = "^(?P<mod_name>\w+)[\s\S]+\(T\)", regexGroup = "mod_name") >+ modules = self.getTaintedModules("T") > badModules = list() > for module in modules: > if not module in self.techPreviewModuleWhitelist: >@@ -90,7 +90,7 @@ > print module > > if tainted & Constants.TAINT_UNSIGNED_MODULE: >- modules = Command("cat /proc/modules").getStringList(regex = "^[\s\S]+\(U\)") >+ modules = self.getTaintedModules("U") > print "Unsigned modules:" > for module in modules: > print module >@@ -124,6 +124,19 @@ > > return success > >+ def getTaintedModules(self, sign): >+ pattern = re.compile("^(?P<mod_name>\w+)[\s\S]+\((?P<signs>[A-Z]+)\)") >+ procModules = open("/proc/modules") >+ modules = list() >+ for line in procModules.readlines(): >+ match = pattern.match(line) >+ if match: >+ if sign in match.group("signs"): >+ modules.append(match.group("mod_name")) >+ procModules.close() >+ return modules >+ >+ > def checkKernelIsGA(self): > > if "Red Hat"not in self.redHatRelease.getProduct() or self.redHatRelease.getVersion() < 5:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 781243
: 573083