rrerolle/pyudev — comment on commit dcc62f0dfd526996da9993070769c1ac306a0722
File: pyudev/monitor.py line 228
By lunaryorn:

Fine. Do I guess correctly that EPERM is set as errno, if the caller lacks CAP_NET_ADMIN? If yes, please document that too, so that developers can catch privilege errors easily. The following sentence would be sufficient.

If the caller lacks this privilege, :exc:`~exceptions.EnvironmentError` is raised with ``errno`` set to :data:`~errno.EPERM`.