Wind River Support Network

HomeDefectsLIN1024-4065
Fixed

LIN1024-4065 : "sepolicy generate" can not generate SELinux policy template

Created: Sep 11, 2024    Updated: Oct 12, 2024
Resolved Date: Oct 11, 2024
Found In Version: 10.24.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

root@intel-x86-64:~# sepolicy generate --init /usr/local/bin/myapp
Traceback (most recent call last):
  File "/usr/bin/sepolicy", line 702, in <module>
    args.func(args)
  File "/usr/bin/sepolicy", line 569, in generate
    mypolicy.gen_writeable()
  File "/usr/lib64/python3.12/site-packages/sepolicy/generate.py", line 1302, in gen_writeable
    self.__extract_rpms()
  File "/usr/lib64/python3.12/site-packages/sepolicy/generate.py", line 1268, in __extract_rpms
    base.read_all_repos()
  File "/usr/lib64/python3.12/site-packages/dnf/base.py", line 554, in read_all_repos
    for repo in reader:
  File "/usr/lib64/python3.12/site-packages/dnf/conf/read.py", line 42, in __iter__
    for r in self._get_repos(self.conf.config_file_path):
  File "/usr/lib64/python3.12/site-packages/dnf/conf/read.py", line 109, in _get_repos
    parser.setSubstitutions(substs)
  File "/usr/lib64/python3.12/site-packages/libdnf/conf.py", line 1643, in setSubstitutions
    return _conf.ConfigParser_setSubstitutions(self, substitutions)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: in method 'ConfigParser_setSubstitutions', argument 2 of type 'std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > const &'

Steps to Reproduce

https://windriver-staging.fluidtopics.net/r/bundle/Wind_River_Linux_Security_Features_Guide_LTS_24/page/jpj1665416147589.html

build:
http://128.224.153.156/buildarea1/SharedImage/LTS24/BSP/intel-x86-64_standard_glibc-std_OSTree_AB_selinux_BUILD_TIME_LABEL/20240820_223216/
Live chat
Online