Bug 2417368 - SELinux is preventing vncsession from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing vncsession from 'getattr' accesses on the filesystem /.
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: tigervnc
Version: 43
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Grulich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1a45581b4669568169ac57f7a68...
: 2483765 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-26 20:56 UTC by Tim Bingham
Modified: 2026-06-02 03:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
bingham.tim: needinfo-


Attachments (Terms of Use)
File: description (1.88 KB, text/plain)
2025-11-26 20:56 UTC, Tim Bingham
no flags Details
File: os_info (712 bytes, text/plain)
2025-11-26 20:56 UTC, Tim Bingham
no flags Details

Description Tim Bingham 2025-11-26 20:56:41 UTC
Description of problem:
SELinux is preventing vncsession from 'getattr' accesses on the filesystem /.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that vncsession should be allowed getattr access on the  filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'vncsession' --raw | audit2allow -M my-vncsession
# semodule -X 300 -i my-vncsession.pp

Additional Information:
Source Context                system_u:system_r:vnc_session_t:s0
Target Context                system_u:object_r:pidfs_t:s0
Target Objects                / [ filesystem ]
Source                        vncsession
Source Path                   vncsession
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.16-1.fc43.noarch
Local Policy RPM              tigervnc-selinux-1.15.0-7.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.17.8-300.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Nov 14 01:47:12 UTC 2025
                              x86_64
Alert Count                   26
First Seen                    2025-11-03 12:47:36 EST
Last Seen                     2025-11-25 21:35:23 EST
Local ID                      21369545-1850-4a3b-9b9c-ca922f4e03d1

Raw Audit Messages
type=AVC msg=audit(1764124523.828:135): avc:  denied  { getattr } for  pid=1225 comm="vncsession" name="/" dev="pidfs" ino=1 scontext=system_u:system_r:vnc_session_t:s0 tcontext=system_u:object_r:pidfs_t:s0 tclass=filesystem permissive=0


Hash: vncsession,vnc_session_t,pidfs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-42.16-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing vncsession from 'getattr' accesses on the filesystem /.
package:        selinux-policy-targeted-42.16-1.fc43.noarch
component:      tigervnc
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.17.8-300.fc43.x86_64
component:      tigervnc

Comment 1 Tim Bingham 2025-11-26 20:56:43 UTC
Created attachment 2116268 [details]
File: description

Comment 2 Tim Bingham 2025-11-26 20:56:44 UTC
Created attachment 2116269 [details]
File: os_info

Comment 3 Jan Grulich 2025-11-27 09:49:46 UTC
Hi, can you share how did you setup and run your VNC session?

Comment 4 Als 2025-11-27 11:56:38 UTC
I have same issue. The problem is well described here:

https://discussion.fedoraproject.org/t/problems-with-systemd-in-vncserver-lxqt-session-with-f43/172485

Comment 5 Tim Bingham 2025-11-27 14:58:21 UTC
> Hi, can you share how did you setup and run your VNC session?

I set up vnc on Fedora 41 or 42 and it worked without issue until I upgraded to 43 when this vc denial started.

Here are the notes I made when setting up vnc -

    Install server
    
    $ sudo dnf install tigervnc-server
    $ sudo dnf install plasma-workspace-x11
    
    Install a client
    
    $ sudo dnf install remmina
    
    Add a mapping for user 'abc' to /etc/tigervnc/vncserver.users
    
    $ diff /etc/tigervnc/vncserver.users.original /etc/tigervnc/vncserver.users
    ...
    > :1=abc
    $
    
    Create a password
    
    $ vncpasswd
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? n
    $
    
    Create a vnc configuration file on the server (session=<name> where
    /usr/share/xsessions/<name>.desktop exists)
    
    Configuration file may be .vnc/config or .config/tigervnc/config
    
    $ cat .vnc/config
    session=plasmax11
    geometry=1920x1200
    $
    
    Open ports in firewall
    
    $ sudo firewall-cmd --add-service=vnc-server --permanent
    $ sudo firewall-cmd --reload
    
    
    Enable and start vncserver

    $ sudo systemctl enable vncserver@:1.service
    $ sudo systemctl start vncserver@:1.service

    Connect from client using remmina as user 'abc' to server:1

Comment 6 Jan Grulich 2025-11-28 09:30:19 UTC
Hi @zpytela, can you think of any change in selinux-policy that would be causing this issue for Tigervnc now in Fedora 43?

Comment 7 Zdenek Pytela 2025-11-28 17:02:22 UTC
I can only guess some library started to use the pidfs abstraction.

fs_getattr_pidfs(vnc_session_t)

may be sufficient

Comment 8 Jan Grulich 2025-12-02 13:29:25 UTC
I made a scratch build with the proposed change from @zpytela. Can you please give it a try?

Link: https://koji.fedoraproject.org/koji/taskinfo?taskID=139618090

Comment 9 Jan Grulich 2025-12-22 07:59:50 UTC
Refreshed scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=140267796

Comment 10 Steve 2026-06-02 03:55:48 UTC
*** Bug 2483765 has been marked as a duplicate of this bug. ***


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