Fixed issue #2437: systemd private /tmp path reported is incorrect - #1105
Merged
derickr merged 2 commits intoSep 8, 2026
Merged
Conversation
…ng functions into their own files
Contributor
|
I haven't tried the original system I reproduced this on (it's in a container I don't have the ability to install into on a client's system, and it'd be a bit of a game of telephone to get them to do the dance to build an SRPM with the patch), but I did set up openSUSE in a VM. It sets up apache2 with PrivateTmp, but in this case, Xdebug claims private tmp is not enabled (instead of reporting an incorrect path, which is still wrong). With this PR, Xdebug does show it correctly now, and it is the correct path (that is in the host, mountinfo from this instance323 106 0:39 /@/.snapshots/1/snapshot / rw,relatime shared:244 master:1 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=264,subvol=/@/.snapshots/1/snapshot 324 323 0:7 / /dev rw,nosuid shared:245 master:2 - devtmpfs devtmpfs rw,seclabel,size=4034248k,nr_inodes=1008562,mode=755,inode64 325 324 0:27 / /dev/shm rw,nosuid,nodev shared:246 master:3 - tmpfs tmpfs rw,seclabel,inode64,usrquota 326 324 0:28 / /dev/pts rw,nosuid,noexec,relatime shared:247 master:4 - devpts devpts rw,seclabel,gid=5,mode=600,ptmxmode=000 327 324 0:22 / /dev/mqueue rw,nosuid,nodev,noexec,relatime shared:248 master:16 - mqueue mqueue rw,seclabel 328 324 0:40 / /dev/hugepages rw,nosuid,nodev,relatime shared:249 master:19 - hugetlbfs hugetlbfs rw,seclabel,pagesize=2M 329 323 0:26 / /sys rw,nosuid,nodev,noexec,relatime shared:250 master:5 - sysfs sysfs rw,seclabel 330 329 0:8 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:251 master:6 - securityfs securityfs rw 331 329 0:30 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime shared:252 master:7 - cgroup2 cgroup2 rw,seclabel,nsdelegate,memory_recursiveprot,memory_hugetlb_accounting 332 329 0:31 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:253 master:8 - pstore none rw,seclabel 333 329 0:32 / /sys/firmware/efi/efivars rw,nosuid,nodev,noexec,relatime shared:254 master:9 - efivarfs efivarfs rw 334 329 0:33 / /sys/fs/bpf rw,nosuid,nodev,noexec,relatime shared:255 master:10 - bpf bpf rw,mode=700 335 329 0:20 / /sys/kernel/config rw,nosuid,nodev,noexec,relatime shared:256 master:11 - configfs configfs rw 336 329 0:23 / /sys/fs/selinux rw,nosuid,noexec,relatime shared:257 master:12 - selinuxfs selinuxfs rw 337 329 0:14 / /sys/kernel/tracing rw,nosuid,nodev,noexec,relatime shared:258 master:17 - tracefs tracefs rw,seclabel 338 329 0:9 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime shared:259 master:18 - debugfs debugfs rw,seclabel 442 338 0:14 / /sys/kernel/debug/tracing rw,nosuid,nodev,noexec,relatime shared:260 master:235 - tracefs tracefs rw,seclabel 443 329 0:44 / /sys/fs/fuse/connections rw,nosuid,nodev,noexec,relatime shared:261 master:23 - fusectl fusectl rw 444 323 0:25 / /proc rw,nosuid,nodev,noexec,relatime shared:262 master:13 - proc proc rw 445 444 0:35 / /proc/sys/fs/binfmt_misc rw,relatime shared:263 master:15 - autofs systemd-1 rw,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=4757 446 445 0:51 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime shared:264 master:63 - binfmt_misc binfmt_misc rw 447 323 0:29 / /run rw,nosuid,nodev shared:265 master:14 - tmpfs tmpfs rw,seclabel,size=1626072k,nr_inodes=819200,mode=755,inode64 450 447 0:72 / /run/user/1000 rw,nosuid,nodev,relatime shared:266 master:513 - tmpfs tmpfs rw,seclabel,size=813032k,nr_inodes=203258,mode=700,uid=1000,gid=1000,inode64 451 323 0:38 /@/.snapshots /.snapshots rw,relatime shared:268 master:45 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=263,subvol=/@/.snapshots 452 323 0:42 /@/home /home rw,relatime shared:269 master:47 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=262,subvol=/@/home 453 323 0:43 / /tmp rw,nosuid,nodev shared:270 master:49 - tmpfs tmpfs rw,seclabel,nr_inodes=1048576,inode64,usrquota 454 323 0:45 /@/root /root rw,relatime shared:272 master:51 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=260,subvol=/@/root 455 323 0:47 /@/opt /opt rw,relatime shared:273 master:53 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=261,subvol=/@/opt 456 323 0:46 /@/srv /srv rw,relatime shared:274 master:55 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=259,subvol=/@/srv 457 323 0:48 /@/usr/local /usr/local rw,relatime shared:275 master:57 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=258,subvol=/@/usr/local 458 323 0:49 /@/var /var rw,relatime shared:276 master:59 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=257,subvol=/@/var 459 323 8:1 / /boot/efi rw,relatime shared:278 master:61 - vfat /dev/sda1 rw,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 448 447 0:29 /systemd/inaccessible/dir /run/credentials ro,nosuid,nodev,noexec shared:267 master:14 - tmpfs tmpfs rw,seclabel,size=1626072k,nr_inodes=819200,mode=755,inode64 449 453 0:43 /systemd-private-2958f84513fe42429c36a41cecf12691-apache2.service-ARtJKj/tmp /tmp rw,nosuid,nodev shared:271 master:49 - tmpfs tmpfs rw,seclabel,nr_inodes=1048576,inode64,usrquota 460 458 0:49 /@/var/tmp/systemd-private-2958f84513fe42429c36a41cecf12691-apache2.service-NWNKuq/tmp /var/tmp rw,relatime shared:277 master:59 - btrfs /dev/sda2 rw,seclabel,discard=async,space_cache=v2,subvolid=257,subvol=/@/var |
derickr
force-pushed
the
issue2437-private-tmp-detection
branch
from
September 8, 2026 15:15
404c6fb to
c8ea98d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Could you check with this PR please (against
xdebug_3_5, @NattyNarwhal ?