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

vncconfig: add option to force view-only remote client connections, round 2 #1701

Closed
wants to merge 3 commits into from

Conversation

casantos
Copy link
Contributor

This is an alternative implementation of #1670 frankly I don't like it, since it's too intrusive and affects all SSecurity subclasses.

It's better to use a mnemonic symbol rather than zero to initialize the
accessRights members.

Signed-off-by: Carlos Santos <[email protected]>
Make accessRights a member of SSecurity, not of subclasses, so we don't
need to override getAccessRights(). Also avoid shadowing the member in
SSecurityStack::getAccessRights().

This is in preparation for changes that will allow to force connections
to view-only access.

Signed-off-by: Carlos Santos <[email protected]>
Specifies that the server must ignore all keyboard or mouse events sent
by the client.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903
Signed-off-by: Carlos Santos <[email protected]>
@CendioOssman
Copy link
Member

I agree, this is indeed a bit too invasive and not what I had in mind. The Security classes should not need to deal with this as this has nothing to do with them. The "view only" restriction should be merged with the security restrictions from the security types. So likely in SConnection::processSecurityMsg(), as that is where setAccessRights() is called.

But let's continue on the first PR to avoid confusion.

@casantos casantos deleted the casantos-rhbz_2180903-2 branch January 9, 2024 13:22
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