[issue27057] os.set_inheritable(): fall back to fcntl() if ioctl() fails with EACCES

Michał Bednarski report at bugs.python.org
Thu May 19 08:15:56 EDT 2016


New submission from Michał Bednarski:

When SELinux forbids ioctl() it fails with EACCES and whole os.set_inheritable raises exception.

As in https://bugs.python.org/issue22258 code was added to fall back to fcntl when ioctl() fails with ENOTTY I'm adding EACCES value to same condition to fall back to fcntl().

----------
files: set_inheritable-eacces.diff
keywords: patch
messages: 265853
nosy: Michał Bednarski
priority: normal
severity: normal
status: open
title: os.set_inheritable(): fall back to fcntl() if ioctl() fails with EACCES
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file42897/set_inheritable-eacces.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27057>
_______________________________________


More information about the Python-bugs-list mailing list