Bug#888028: nvidia-driver: applications running with discrete NVIDIA graphics tries to create /home/user.nv/ directory
Vincas Dargis
vindrg at gmail.com
Mon Jan 22 19:20:24 UTC 2018
Package: nvidia-driver
Severity: normal
Dear Maintainer,
Some appliactions that has AppArmor profile defined produces DENIED log
entries for strange `/home/vincas.nv/` paths:
```
type=AVC msg=audit(1516647002.968:744): apparmor="DENIED"
operation="mkdir" profile="thunderbird" name="/home/vincas.nv/"
pid=23705 comm="thunderbird" requested_mask="c" denied_mask="c"
fsuid=1000 ouid=1000
type=SYSCALL msg=audit(1516647002.968:744): arch=c000003e syscall=83
success=no exit=-13 a0=7f81fc94ac20 a1=1ff a2=1 a3=1 items=0 ppid=23694
pid=23705 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000
egid=1000 sgid=1000 fsgid=1000 tty=pts2 ses=4 comm="thunderbird"
exe="/usr/lib/thunderbird/thunderbird-bin" key=(null)
```
This reproduces for me when I run application via `optirun` to enable
NVIDIA discrete graphics. It does not reproduce if I run on integrated
Intel graphics.
After creating directory in question and setting appropriate permissions,
running application again produces these kind of files:
```
$ ls -a /home/vincas.nv/
. .. .glEHt9Vu .glMKQk7L .glMWvlTf
```
It looks like a path concatination bug.
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages nvidia-driver depends on:
ii nvidia-alternative 384.111-3
pn nvidia-driver-bin <none>
pn nvidia-driver-libs | nvidia-driver-libs-nonglvnd <none>
ii nvidia-installer-cleanup 20151021+7
ii nvidia-kernel-dkms [nvidia-kernel-384.111] 384.111-3
ii nvidia-legacy-check 384.111-3
ii nvidia-support 20151021+7
ii nvidia-vdpau-driver 384.111-3
ii xserver-xorg-video-nvidia 384.111-3
Versions of packages nvidia-driver recommends:
pn nvidia-persistenced <none>
ii nvidia-settings 384.111-1
Versions of packages nvidia-driver suggests:
ii nvidia-kernel-dkms 384.111-3
More information about the pkg-nvidia-devel
mailing list