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

Bugs found by SELinux #5215

Closed
DemiMarie opened this issue Aug 3, 2019 · 1 comment
Closed

Bugs found by SELinux #5215

DemiMarie opened this issue Aug 3, 2019 · 1 comment
Labels
R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one.

Comments

@DemiMarie
Copy link

Qubes OS version:

Qubes release 4.0 (R4.0)

Affected component(s) or functionality:

Probably multiple. Bugs have been found in qrexec and qubes-firewall so far.


Steps to reproduce the behavior:

Run with SELinux in strict enforcing mode and start writing SELinux policies.

Expected or desired behavior:

  • qrexec-agent doesn’t leak a Xen FD and a TTY FD to processes spawned by PAM.
  • qubes-firewall ships with .pyc files in the RPM package.

Actual behavior:

  • qrexec-agent leaks a Xen FD and a TTY FD to processes spawned by PAM.
  • qubes-firewall doesn’t ship with .pyc files in the RPM package.

General notes:

These show up as AVC denials. In the first case, namespace_init_t was passed FDs belonging to Xen and a TTY, which SELinux (correctly) blocked. In the second case, init_t was trying to write compiled Python bytecode, which was also blocked.


I have consulted the following relevant documentation:

I am aware of the following related, non-duplicate issues:

#4329, #4278, #4279

@DemiMarie
Copy link
Author

Oops, double-post. Duplicate of #5124.

@andrewdavidwong andrewdavidwong added the R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one. label Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R: duplicate Resolution: Another issue exists that is very similar to or subsumes this one.
Projects
None yet
Development

No branches or pull requests

2 participants