Add check_cloexec_fds debug command
Add a debug command (to be executed manually via Alt+F2) to check that all of gnome-shell's file descriptors have the CLOEXEC flag set. This is important so that internal file descriptors do not get passed to apps when they are launched. It prints a warning message for every fd that does not have the flag set. fdwalk() is used from the standard library if available (it is not available in glibc), otherwise we use the same implementation as glib has internally. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/132
This commit is contained in:

committed by
Florian Müllner

parent
4b522a02c3
commit
49d8ff38e7
@@ -60,6 +60,8 @@ cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures
|
||||
int width,
|
||||
int height);
|
||||
|
||||
void shell_util_check_cloexec_fds (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __SHELL_UTIL_H__ */
|
||||
|
Reference in New Issue
Block a user