• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rpm-software-management / rpmlint / 27743531775

18 Jun 2026 07:23AM UTC coverage: 88.143% (+0.2%) from 87.933%
27743531775

push

github

6096 of 6916 relevant lines covered (88.14%)

3.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.21
/rpmlint/checks/PAMModulesCheck.py
1
import re
4✔
2

3
from rpmlint.checks.AbstractCheck import AbstractCheck
4✔
4

5

6
class PAMModulesCheck(AbstractCheck):
4✔
7
    pam_module_re = re.compile(r'^(?:/usr)?/lib(?:64)?/security/([^/]+\.so)$')
4✔
8

9
    def __init__(self, config, output):
4✔
10
        super().__init__(config, output)
4✔
11
        self.pam_authorized_modules = config.configuration['PAMAuthorizedModules']
4✔
12

13
    def check(self, pkg):
4✔
14
        if pkg.is_source:
4✔
15
            return
×
16

17
        for f in pkg.files:
4✔
18
            if f in pkg.ghost_files:
4✔
19
                continue
4✔
20

4✔
21
            m = self.pam_module_re.match(f)
×
22
            if m:
×
23
                bn = m.groups()[0]
24
                if bn not in self.pam_authorized_modules:
4✔
25
                    self.output.add_info('E', pkg, 'pam-unauthorized-module', bn)
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc