Modify the CheckPrivilege method to support C application (RPM type)