diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-12-08 15:33:43 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2021-12-08 16:08:34 -0500 |
commit | e16200c8eb28318a665d7b9dadfe199c3e6641eb (patch) | |
tree | bf45e2b609953abc7b5002c48fdb7e82dc800e1a | |
parent | b48fa45f56f2361e696991a2966ebe217009d196 (diff) | |
download | meta-selinux-e16200c8eb28318a665d7b9dadfe199c3e6641eb.tar.gz |
selinux-python: add RDEPENDES on audit-python
Add RDEPENDS on audit-python for selinux-python-semanage.
Fixes:
$ semanage fcontext -a -t user_home_t "/web(/.*)?"
Traceback (most recent call last):
File "/usr/sbin/semanage", line 975, in <module>
do_parser()
File "/usr/sbin/semanage", line 947, in do_parser
args.func(args)
File "/usr/sbin/semanage", line 329, in handleFcontext
OBJECT.add(args.file_spec, args.type, args.ftype, args.range, args.seuser)
File "/usr/lib/python3.9/site-packages/seobject.py", line 2485, in add
self.__add(target, type, ftype, serange, seuser)
File "/usr/lib/python3.9/site-packages/seobject.py", line 2481, in __add
self.mylog.log_change("resrc=fcontext op=add %s ftype=%s tcontext=%s:%s:%s:%s"
% (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype],)
NameError: name 'audit' is not defined
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.2.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux-python_3.2.bb b/recipes-security/selinux/selinux-python_3.2.bb index a954676..d130900 100644 --- a/recipes-security/selinux/selinux-python_3.2.bb +++ b/recipes-security/selinux/selinux-python_3.2.bb | |||
@@ -50,6 +50,7 @@ RDEPENDS:${BPN}-semanage += "\ | |||
50 | python3-xml \ | 50 | python3-xml \ |
51 | python3-misc \ | 51 | python3-misc \ |
52 | libselinux-python \ | 52 | libselinux-python \ |
53 | audit-python \ | ||
53 | ${BPN} \ | 54 | ${BPN} \ |
54 | " | 55 | " |
55 | RDEPENDS:${BPN}-sepolicy += "\ | 56 | RDEPENDS:${BPN}-sepolicy += "\ |