diff options
author | Yi Zhao <yi.zhao@eng.windriver.com> | 2023-08-23 23:22:04 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2023-09-05 14:36:06 -0400 |
commit | dea065096bf2776942f7990e8124053411d81d91 (patch) | |
tree | 8f941a77abe79e879db2851517b525b09d942ed3 | |
parent | 5933e66507d81651f721e2dfd16f7a6d04de4c32 (diff) | |
download | meta-selinux-dea065096bf2776942f7990e8124053411d81d91.tar.gz |
selinux-python: add python3-distro and binutils to RDEPENDS
Add python3-distro and binutils to RDEPENDS for sepolicy to fix runtime
error:
$ sepolicy -h
Traceback (most recent call last):
File "/usr/bin/sepolicy", line 690, in <module>
gen_manpage_args(subparsers)
File "/usr/bin/sepolicy", line 375, in gen_manpage_args
man.add_argument("-o", "--os", dest="os", default=get_os_version(),
File "/usr/lib/python3.11/site-packages/sepolicy/__init__.py", line 1245, in get_os_version
import distro
ModuleNotFoundError: No module named 'distro'
$ sepolicy generate --init /usr/sbin/sshd
/bin/sh: line 1: nm: command not found
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/selinux/selinux-python_3.5.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux-python_3.5.bb b/recipes-security/selinux/selinux-python_3.5.bb index 9ff63db..79125d0 100644 --- a/recipes-security/selinux/selinux-python_3.5.bb +++ b/recipes-security/selinux/selinux-python_3.5.bb | |||
@@ -54,8 +54,10 @@ RDEPENDS:${PN}-semanage = "\ | |||
54 | ${PN} \ | 54 | ${PN} \ |
55 | " | 55 | " |
56 | RDEPENDS:${PN}-sepolicy = "\ | 56 | RDEPENDS:${PN}-sepolicy = "\ |
57 | binutils \ | ||
57 | python3-core \ | 58 | python3-core \ |
58 | python3-codecs \ | 59 | python3-codecs \ |
60 | python3-distro \ | ||
59 | python3-syslog \ | 61 | python3-syslog \ |
60 | python3-multiprocessing \ | 62 | python3-multiprocessing \ |
61 | ${PN} \ | 63 | ${PN} \ |