[PATCH conductor 1/6] bug 788148: Take environment into account for permission inheritance