mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-09 06:59:34 +00:00
a3be73bea4
Aliases are not used in the selinux database. When user enters a type alias as a parameter it should be converted to the corresponding type in order to be processed correctly further in the userspace logic. Fixes e.g.: \#sepolicy transition -s phpfpm_t /* where phpfpm_t is a type alias of httpd_t */ Traceback (most recent call last): File "/usr/bin/sepolicy", line 691, in <module> args.func(args) File "/usr/bin/sepolicy", line 458, in transition mytrans = setrans(args.source, args.target) File "/usr/lib/python3.6/site-packages/sepolicy/transition.py", line 48, in __init__ self._process(self.source) File "/usr/lib/python3.6/site-packages/sepolicy/transition.py", line 54, in _process trans = _get_trans(source) File "/usr/lib/python3.6/site-packages/sepolicy/transition.py", line 36, in _get_trans src_list = [src] + list(filter(lambda x: x['name'] == src, sepolicy.get_all_types_info()))[0]['attributes'] IndexError: list index out of range |
||
---|---|---|
.. | ||
sepolicy | ||
.gitignore | ||
Makefile | ||
sepolgen.8 | ||
sepolicy-bash-completion.sh | ||
sepolicy-booleans.8 | ||
sepolicy-communicate.8 | ||
sepolicy-generate.8 | ||
sepolicy-gui.8 | ||
sepolicy-interface.8 | ||
sepolicy-manpage.8 | ||
sepolicy-network.8 | ||
sepolicy-transition.8 | ||
sepolicy.8 | ||
sepolicy.py | ||
setup.py | ||
test_sepolicy.py |