def root_check():
    """
    Simple root gate
    :return: errno.EACCESS if not running as root, None if running as root
    """
    if os.geteuid() != 0:
        return errno.EACCES
    return None
dataset/ETHPy150Open Netflix/aminator/aminator/util/linux.py/root_check/original