From 5b5125f3322ad1b178739ebf4c6f277cc391b012 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Bednarski?= Date: Tue, 17 May 2016 22:19:10 +0200 Subject: [PATCH] python: Make os.set_inheritable work on sockets As SELinux policy disallows ioctl on sockets we have to fall back to fcntl on EACCES --- packages/python/fileutils.c.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/python/fileutils.c.patch diff --git a/packages/python/fileutils.c.patch b/packages/python/fileutils.c.patch new file mode 100644 index 00000000..0464f2a7 --- /dev/null +++ b/packages/python/fileutils.c.patch @@ -0,0 +1,11 @@ +--- Python-3.5.1/Python/fileutils.c 2015-12-07 02:39:11.000000000 +0100 ++++ src/Python/fileutils.c 2016-05-17 21:46:09.006285776 +0200 +@@ -856,7 +856,7 @@ + return 0; + } + +- if (errno != ENOTTY) { ++ if (errno != ENOTTY && errno != EACCES) { + if (raise) + PyErr_SetFromErrno(PyExc_OSError); + return -1; -- 2.11.0