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

Add policy for /usr/libexec/samba/samba-bgqd #2301

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Aug 7, 2024

samba-bgqd is an helper program added in samba v4.20.2 to be spawned by smbd or spoolssd to perform jobs like updating the printer list or other management tasks asynchronously on demand. It is not intended to be called by users or administrators.

@zpytela zpytela force-pushed the samba-bgqd branch 2 times, most recently from 3e60990 to ab069a0 Compare August 7, 2024 12:06
@cryptomilk
Copy link

By default samba-bgqd is started on demand by samba-dcerpcd in Samba.

samba-bgqd is a deamon enumerating cups printers and storing the gathered information in a cache. The issue is that it takes ~1 second to get the information about a printer. There are print servers out there with 20 or 60 printers. So enumerating 60 printers takes ~60sec. The problem is that if samba-bgqd is started on demand and enumerating printers is taking too long, the process will get killed before it is ready.

Providing a way to start samba-bgqd as a systemd service and always having it running in the background solves this. The problem is sometimes that we are a very very small team for a very big software project. And something there are a few thing we don't test thoroughly.

I'm fine with creating a policy for RHEL 9.6 for this. It is not urgent to fix the issue, but we have to.

@zpytela zpytela marked this pull request as ready for review October 24, 2024 19:01
@zpytela zpytela force-pushed the samba-bgqd branch 7 times, most recently from 551aae2 to ff45663 Compare October 25, 2024 12:01
samba-bgqd is a daemon enumerating cups printers and storing the
gathered information in a cache. Since gathering the information about
one printer takes about 1 sec, in environments with many printers
the process may get killed before finishing. Providing a way to start
samba-bgqd as a systemd service and always having it running in the
background is a solution to this issue.

Resolves: RHEL-53124
@zpytela zpytela merged commit 0ae3eaf into fedora-selinux:rawhide Oct 25, 2024
6 checks passed
@zpytela zpytela deleted the samba-bgqd branch October 25, 2024 13:34
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

Successfully merging this pull request may close these issues.

2 participants