[kwin] [Bug 400451] kwin_wayland blocks TMPDIR env variable inheritance in Plasma wayland session
Ardith Metz
bugzilla_noreply at kde.org
Tue May 14 13:33:41 BST 2019
https://bugs.kde.org/show_bug.cgi?id=400451
Ardith Metz <itgvkxsd at grr.la> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|general |wayland-generic
Summary|Plasma wayland session |kwin_wayland blocks TMPDIR
|doesn't export provided |env variable inheritance in
|TMPDIR env variable |Plasma wayland session
Assignee|unassigned-bugs at kde.org |kwin-bugs-null at kde.org
Product|ksmserver |kwin
--- Comment #4 from Ardith Metz <itgvkxsd at grr.la> ---
I've found the cause. 'kwin_ayland' binary is installed with 'CAP_SYS_NICE'
file capability[1] which blocks 'TMPDIR' inheritance across the runtime chain.
Removing that capability makes 'TMPDIR' correctly exported again.
This was introduced in[2] and caused env variables inheritance issue already
in[3].
I think the fix should be similar to the above - if TMPDIR var exist then pass
it explicitly to child processes
[1]
https://github.com/KDE/kwin/blob/988ca97c96f11912a856f36daf5f044845044f7b/CMakeLists.txt#L702
[2] https://github.com/KDE/kwin/commit/7c8003f7f6212ccad7de652943f94d501365d30f
[3] https://github.com/KDE/kwin/commit/eb69e87288d37fdb13eca32ca807ed8279f912af
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list