debian packaging postinst follows symlinks and chowns system files

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: other
    • Environment:
      Debian or Ubuntu using .debs provided by hudson labs.

      The hudson debian package postinst script has a find command which chowns files in /var/lib/hudson to the hudson user. The find command as currently written follows symlinks, which means if there are symlinks to system files (like are frequently found in python virtualenv build environments), the dpkg process, which runs as root, winds up chowning files in system locations (like /usr/lib/python) to be owned by hudson.

      This is obviously uncool.

      I've got a patch which fixes it - will submit a pull request in just a sec.

            Assignee:
            Monty Taylor
            Reporter:
            Monty Taylor
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: