Bug 7581 - tl-limit-printers times out on RHEL 8
Summary: tl-limit-printers times out on RHEL 8
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Printing (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.13.0
Assignee: Samuel Mannehed
Keywords: frifl_tester, relnotes
Depends on:
Reported: 2020-11-04 19:02 CET by Samuel Mannehed
Modified: 2020-11-10 12:21 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Samuel Mannehed cendio 2020-11-04 19:02:38 CET
When tl-limit-printers runs as part of starting up a new session or when reconnecting it times out on two RHEL 8 systems I've tested on. The first machine was RHEL 8.0, the second RHEL 8.2. Can reproduce with both nightly build and ThinLinc 4.12.0.

> 2020-11-04 18:56:05 INFO vsmserver.session: User with uid 1000 (cendio) requested a new session
> 2020-11-04 18:56:07 INFO vsmserver.session: Session created for user cendio
> 2020-11-04 18:56:47 WARNING vsmserver.extproc: Timeout running ['/opt/thinlinc/etc/sessionstartup.d/tl-limit-printers']
> 2020-11-04 18:56:47 INFO vsmserver.extproc: ['/opt/thinlinc/etc/sessionstartup.d/tl-limit-printers'] exited with exit code -15

Running it manually on these machines works without issue:

> [cendio@lab-174 ~]$ sudo USER=cendio /opt/thinlinc/sbin/tl-limit-printers -v
> Waiting for lock on /var/opt/thinlinc/utils/tl-printer/tl-limit-printers.lock
> Acquired lock
> Hardware addresses associated with user: ['00:50:56:B0:07:F0']
> Current list of printers: ['nearest', 'thinlocal']
> ['lpadmin', '-p', 'thinlocal', '-u', 'allow:cendio,root']
> lpadmin returned 0
> ['lpadmin', '-p', 'nearest', '-u', 'allow:root']
> lpadmin returned 0
> Unlocking /var/opt/thinlinc/utils/tl-printer/tl-limit-printers.lock

I can not reproduce the issue on my Fedora 32 workstation.
Comment 3 Samuel Mannehed cendio 2020-11-05 10:06:52 CET
Running "sudo setenforce 0" makes the problem go away.

This bug seems related to bug 7445.
Comment 5 Samuel Mannehed cendio 2020-11-05 13:53:05 CET
Fixed now by allowing the master to talk to avahi in our SELinux permissions. Also see bug 7582.
Comment 6 Frida Flodin cendio 2020-11-10 12:21:25 CET
I can verify that this has been fixed:
 * Reproduced the problem with 4.12.0 running on RHEL8.
 * The problem is indeed gone with nightly-build 6652 running on RHEL8.
 * tl-limit-printer works as expected when limiting my terminal to only have
   access to thinlocal.

Note You need to log in before you can comment on or make changes to this bug.