Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-3185

ERROR_ACCESS_DENIED for deleting services

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • NTCore
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      Running a program, that loads and unloads driver as service. Works fine on win2k but ROS reports ERROR_ACCESS_DENIED when trying to delete the service.

      When trying to delete a service, believe the wrong thing is checked here.
      if (!RtlAreAllAccessesGranted(hSvc->Handle.DesiredAccess,
      STANDARD_RIGHTS_REQUIRED))

      Using only START_SERVICE + STOP_SERVICE + DELETE works in win2k.
      Should be
      if (!RtlAreAllAccessesGranted(hSvc->Handle.DesiredAccess, DELETE))

      Though this fixes the issue with rights, there are other problems with service removal.

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              bugboy bugboy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: