diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2012-12-21 23:34:14 (GMT) | 
| commit | 3bfff245c47c4dd1404c5ea7af0ff4858ac8d130 (patch) | |
| tree | dc3613e2ebdef4d04fa874335795268dba732d31 /plugins/python/androperms/db.py | |
| parent | 0cfcbee3c536ac6d11ec806d47ce4c136f695697 (diff) | |
Resolved relative addresses for routines and fixed bugs related to PyGObjects construction.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@308 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/python/androperms/db.py')
| -rw-r--r-- | plugins/python/androperms/db.py | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/plugins/python/androperms/db.py b/plugins/python/androperms/db.py index 625d400..7014915 100644 --- a/plugins/python/androperms/db.py +++ b/plugins/python/androperms/db.py @@ -53,7 +53,7 @@ class PermsDataBase:              self._used[p] = [] -    def check_call(self, addr, line): +    def check_call(self, addr, line, reladdr):          """Check if a call requires some rights."""          found = False @@ -69,23 +69,23 @@ class PermsDataBase:                  #if line.find(c) > -1:                  if c.find(line) > -1: -                    self._used[p].append([addr, c + "()"]) -                    #found = True +                    self._used[p].append([reladdr, c + "()", addr]) +                    found = True -        if not found: +        # if not found: -            func = line.split('.')[-1] +        #     func = line.split('.')[-1] -            for p in self._perms: +        #     for p in self._perms: -                for c in self._perms[p]: +        #         for c in self._perms[p]: -                    if line.find("Wall") > -1: -                        print " <> ", c, " vs ", func +        #             if c.find(func) > -1: -                    if c.find(func) > -1: -                        self._used[p].append([addr, line + "()"]) -                        break +        #                 #print ">>> %s found in %s" % (func, c) + +        #                 self._used[p].append([reladdr, line + "()", addr]) +        #                 break      def get_used_permissions(self): | 
