Bug 1416377
| Summary: | sepolicy transition -s sshd_t tracebacks | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Milos Malik <mmalik> |
| Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 25 | CC: | dwalsh, mgrepl, plautrba, pmoore, vmojzis |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | policycoreutils-devel-2.6-3.fc26.x86_64 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-04-06 11:56:57 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
# rpm -qa libsepol\* libsemanage\* libselinux\* policycoreutils\* checkpolicy\* setools\* | sort checkpolicy-2.6-0.1.fc25.x86_64 libselinux-2.6-0.1.fc25.x86_64 libselinux-python-2.6-0.1.fc25.x86_64 libselinux-python3-2.6-0.1.fc25.x86_64 libselinux-utils-2.6-0.1.fc25.x86_64 libsemanage-2.6-0.2.fc25.x86_64 libsemanage-python-2.6-0.2.fc25.x86_64 libsemanage-python3-2.6-0.2.fc25.x86_64 libsepol-2.6-0.2.fc25.x86_64 policycoreutils-2.6-0.6.fc25.x86_64 policycoreutils-devel-2.6-0.6.fc25.x86_64 policycoreutils-python-2.6-0.6.fc25.x86_64 policycoreutils-python3-2.6-0.6.fc25.x86_64 policycoreutils-python-utils-2.6-0.6.fc25.x86_64 setools-python3-4.0.1-0.2.fc25.x86_64 # sepolicy transition -s sshd_t sshd_t @ chkpwd_exec_t --> chkpwd_t sshd_t @ mount_ecryptfs_exec_t --> mount_ecryptfs_t sshd_t @ updpwd_exec_t --> updpwd_t sshd_t @ xauth_exec_t --> xauth_t sshd_t @ mount_exec_t --> mount_t sshd_t @ abrt_helper_exec_t --> abrt_helper_t sshd_t @ passwd_exec_t --> passwd_t sshd_t @ fusermount_exec_t --> mount_t sshd_t @ oddjob_mkhomedir_exec_t --> oddjob_mkhomedir_t sshd_t @ lvm_exec_t --> lvm_t sshd_t @ shell_exec_t --> unconfined_t sshd_t @ setfiles_exec_t --> setfiles_t -- Allowed False [ polyinstantiation_enabled=0 ] sshd_t @ namespace_init_exec_t --> namespace_init_t -- Allowed False [ polyinstantiation_enabled=0 ] # Seems to be fixed. |
Description of problem: * the tool runs for a while and then ends up with a traceback Version-Release number of selected component (if applicable): checkpolicy-2.6-0.1.fc25.x86_64 libselinux-2.6-0.1.fc25.x86_64 libselinux-python-2.6-0.1.fc25.x86_64 libselinux-python3-2.6-0.1.fc25.x86_64 libselinux-utils-2.6-0.1.fc25.x86_64 libsemanage-2.6-0.2.fc25.x86_64 libsemanage-python-2.6-0.2.fc25.x86_64 libsemanage-python3-2.6-0.2.fc25.x86_64 libsepol-2.6-0.2.fc25.x86_64 policycoreutils-2.6-0.5.fc25.x86_64 policycoreutils-devel-2.6-0.5.fc25.x86_64 policycoreutils-gui-2.6-0.5.fc25.x86_64 policycoreutils-python-2.6-0.5.fc25.x86_64 policycoreutils-python3-2.6-0.5.fc25.x86_64 policycoreutils-python-utils-2.6-0.5.fc25.x86_64 setools-console-4.0.1-0.2.fc25.x86_64 setools-python3-4.0.1-0.2.fc25.x86_64 How reproducible: * always Steps to Reproduce: # sepolicy transition -s sshd_t Traceback (most recent call last): File "/usr/bin/sepolicy", line 700, in <module> args.func(args) File "/usr/bin/sepolicy", line 468, in transition mytrans.output() File "/usr/lib/python3.5/site-packages/sepolicy/transition.py", line 82, in output print(self.out(self.source)) File "/usr/lib/python3.5/site-packages/sepolicy/transition.py", line 71, in out buf += "%s%s @ %s --> %s %s\n" % (header, t["source"], t["target"], t["transtype"], sepolicy.get_conditionals_format_text(cond)) File "/usr/lib/python3.5/site-packages/sepolicy/__init__.py", line 386, in get_conditionals_format_text enabled = len(filter(lambda x: x['boolean'][0][1], cond)) > 0 TypeError: object of type 'filter' has no len() # Actual results: * traceback Expected results: * no tracebacks