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

LXQt .xinitrc and others #637

Open
beroal opened this issue Jan 1, 2025 · 1 comment
Open

LXQt .xinitrc and others #637

beroal opened this issue Jan 1, 2025 · 1 comment

Comments

@beroal
Copy link
Contributor

beroal commented Jan 1, 2025

I'm trying to use LXQt. I configured greetd and wlgreet such that wlgreet starts startx. When I try to log in, Xorg doesn't start and I get the following log messages:

apparmor="DENIED" operation="open" class="file" profile="greetd" name="/"  comm="find" requested_mask="r" denied_mask="r" fsuid=972 ouid=0 FSUID="greeter" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="sway" name="/apparmor/.null"  comm="sway" requested_mask="wr" denied_mask="wr" fsuid=972 ouid=0 FSUID="greeter" OUID="root"
apparmor="DENIED" operation="file_mmap" class="file" info="Failed name lookup - disconnected path" error=-13 profile="unix-chkpwd" name=""  comm="unix_chkpwd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 FSUID="root" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="greetd" name="/home/job/"  comm="find" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="ALLOWED" operation="file_inherit" class="file" profile="startx" name="/dev/tty1"  comm="startx" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="file_inherit" class="file" profile="xauth" name="/dev/tty1"  comm="xauth" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" info="Failed name lookup - disconnected path" error=-13 profile="xauth" name="apparmor/.null"  comm="xauth" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="file_inherit" class="file" profile="xinit" name="/dev/tty1"  comm="xinit" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" info="Failed name lookup - disconnected path" error=-13 profile="xinit" name="apparmor/.null"  comm="xinit" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="xinit" name="/proc/sys/net/ipv6/conf/all/disable_ipv6"  comm="xinit" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="create" class="net" profile="xinit"  comm="xinit" family="netlink" sock_type="raw" protocol=0 requested_mask="create" denied_mask="create"
apparmor="DENIED" operation="create" class="net" profile="xinit"  comm="xinit" family="inet" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
apparmor="DENIED" operation="create" class="net" profile="xinit"  comm="xinit" family="inet6" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
apparmor="DENIED" operation="create" class="net" profile="xinit"  comm="xinit" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
apparmor="DENIED" operation="create" class="net" profile="xinit"  comm="xinit" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
apparmor="DENIED" operation="file_inherit" class="file" info="Failed name lookup - disconnected path" error=-13 profile="local-read" name="apparmor/.null"  comm="file" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0 FSUID="root" OUID="root"
apparmor="DENIED" operation="open" class="file" info="Failed name lookup - disconnected path" error=-13 profile="local-read" name="apparmor/.null"  comm="file" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0 FSUID="root" OUID="root"

After adding

  /dev/tty@{int} rw,

to the startx profile,

  /dev/tty@{int} rw,
  @{HOME}/.xinitrc r,

to the xinit profile, and

  /dev/tty@{int} rw,

to the xauth profile, Xorg starts, but I can't exit LXQt via the menu, and I get the following log messages:

apparmor="DENIED" operation="open" class="file" profile="greetd" name="/"  comm="find" requested_mask="r" denied_mask="r" fsuid=972 ouid=0 FSUID="greeter" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="sway" name="/apparmor/.null"  comm="sway" requested_mask="wr" denied_mask="wr" fsuid=972 ouid=0 FSUID="greeter" OUID="root"
apparmor="DENIED" operation="file_mmap" class="file" info="Failed name lookup - disconnected path" error=-13 profile="unix-chkpwd" name=""  comm="unix_chkpwd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 FSUID="root" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="greetd" name="/home/job/"  comm="find" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="file_inherit" class="file" profile="xprop" name="/dev/tty1"  comm="xprop" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="xprop" name="/apparmor/.null"  comm="xprop" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="file_inherit" class="file" profile="lxqt-session" name="/dev/tty1"  comm="lxqt-session" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-session" name="/apparmor/.null"  comm="lxqt-session" requested_mask="wr" denied_mask="wr" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/home/job/"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-runner" name="/home/job/.config/menus/applications-merged/"  comm="lxqt-runner" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/proc/24877/mountinfo"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-runner" name="/usr/share/racket/slideshow-exe-icon.png"  comm="lxqt-runner" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/home/job/.config/menus/applications-merged/wine-Programs-AntiPlagiarism.NET-AntiPlagiarism.NET.menu"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/home/job/.config/menus/applications-merged/wine-Programs-AntiPlagiarism.NET-Деинсталлировать AntiPlagiarism.NET.menu"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=1004 FSUID="job" OUID="job"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/sys/devices/pci0000:00/0000:00:01.2/0000:12:00.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1/uevent"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/sys/devices/pci0000:00/0000:00:01.6/0000:26:00.0/nvme/nvme0/nvme0n1/nvme0n1p1/uevent"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="lxqt-panel" name="/usr/share/racket/slideshow-exe-icon.png"  comm="lxqt-panel" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="open" class="file" profile="lxqt-globalkeysd" name="/etc/machine-id"  comm="lxqt-globalkeys" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="exec" class="file" profile="lxqt-panel" name="/usr/bin/lxqt-leave"  comm="lxqt-panel" requested_mask="x" denied_mask="x" fsuid=1004 ouid=0 FSUID="job" OUID="root"
apparmor="DENIED" operation="getattr" class="file" info="Failed name lookup - disconnected path" error=-13 profile="systemd-user-runtime-dir" name=""  comm="systemd-user-ru" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 FSUID="root" OUID="root"

The reason is that lxqt-panel isn't allowed to execute lxqt-leave. After allowing this, LXQt works. I suppose that further testing should be performed for each GUI application separately.

@roddhjav
Copy link
Owner

roddhjav commented Jan 9, 2025

LXQt is pretty much a wip right now, So I guess this is expected to have issues. I will have a deeper look at these soon.

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

No branches or pull requests

2 participants