Change the access permissions of the file given by file descriptor fd.
fd
The file descriptor of the file to be modified.
mode
Operating-system mode bitfield.
Be careful when using number literals for *mode*. The conventional
UNIX notation for numeric modes uses an octal base, which needs to
be indicated with a ``0o`` prefix in Python.
Equivalent to os.chmod(fd, mode).