Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selinux-polgengui: Error when manually specifying the path to the sock #379

Open
freedom1b2830 opened this issue Jan 11, 2023 · 0 comments

Comments

@freedom1b2830
Copy link

  • At the phase of choosing paths to files, I choose the path to the unix socket.
    in the console writes an error below, graphically does not warn.
  • After the generation of the te if fc file is completed, it turns out that the fc file is empty (size 0)
  • arch linux package version selinux-gui 3.4-1
Traceback (most recent call last):
  File "/usr/bin/selinux-polgengui", line 390, in forward
    self.generate_policy()
  File "/usr/bin/selinux-polgengui", line 536, in generate_policy
    self.info(my_policy.generate(outputdir))
  File "/usr/lib/python3.10/site-packages/sepolicy/generate.py", line 1378, in generate
    out += "%s # %s\n" % (self.write_fc(out_dir), _("File Contexts file"))
  File "/usr/lib/python3.10/site-packages/sepolicy/generate.py", line 1259, in write_fc
    fd.write(self.generate_fc())
  File "/usr/lib/python3.10/site-packages/sepolicy/generate.py", line 1094, in generate_fc
    t1 = re.sub("TEMPLATETYPE", self.name, self.files[i][2].fc_sock_file)
AttributeError: module 'sepolicy.templates.tmp' has no attribute 'fc_sock_file'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant