Portupgrading - portauditing

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default Portupgrading - portauditing



    Hello,

    Your team is ALWAYS very helpful . It's the best support i've ever dealt with.

    Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais
    have vulnerabilities,and not the whole thing?

    Thank you


    G.K.
    George Katsanos Guest

  2. #2

    Default Re: Portupgrading - portauditing

    George Katsanos wrote:
    >
    > Hello,
    >
    > Your team is ALWAYS very helpful . It's the best support i've ever dealt with.
    >
    > Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais
    > have vulnerabilities,and not the whole thing?
    >
    > Thank you
    >
    >
    > G.K.


    As someone pointed out, IE: portupgrade -rR firefox

    --
    Best regards,
    Chris

    If two wrongs don't make a right, try three.
    Chris Guest

  3. #3

    Default Re: Portupgrading - portauditing

    George Katsanos wrote:
    >
    > Hello,
    >
    > Your team is ALWAYS very helpful . It's the best support i've ever dealt with.
    >
    > Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais
    > have vulnerabilities,and not the whole thing?
    >
    > Thank you
    >
    >
    > G.K.
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    Are you after a way to do this automatically or just a way to do it
    generally?

    You basically want to run portaudit -a and portupgrade each "Affected
    Package". You could probably script this quite easily:

    for i in `portaudit -a | grep "Affected package:" | awk '{print $3}'`
    do
    portupgrade $FLAGS $i
    done

    Hope this is what you were after. :)
    Chris

    Chris Hodgins Guest

  4. #4

    Default Re: Portupgrading - portauditing

    I wouldn't bother trying it like straight out if you're trying to get
    the Firefox update. It still lists firefox as a vulnerability for
    some reason. I had 1.7.5_1,2, which is the version it listed, but it
    wouldn't let me upgrade to 1.0.1,1. I even tried listing the
    vulnerability listed in portaudit.conf, but no change.

    I finally gave up and deleted the db at
    /var/db/portaudit/auditfile.tbz and then did the upgrade.

    It still flags firefox as a vulnerability, even though the problem it
    references is supposed to be explicitly fixed in the version I have
    installed (window injection vulnerability).

    Of course, you can the method described by another poster to get that
    list, but I haven't been able to get portaudit to actually let me
    upgrade. Even the portupgrade -f flag won't work and simply building
    the port manually is also disabled for flagged ports.

    Portaudit seems more a hard lockdown than a warning system. I think
    either I am not understanding how to manage it yet, or it has a couple
    issues that have not been hammered out yet. Manpages don't have much
    detail about this issue. I haven't had a chance to check on the
    existence of a bug report yet, because I want to hunt down all the
    docs I can first.

    Not that I don't think it's a great security tool! :)

    Lou

    On 02/26/05 04:42 PM, George Katsanos sat at the `puter and typed:
    >
    >
    > Hello,
    >
    > Your team is ALWAYS very helpful . It's the best support i've ever dealt with.
    >
    > Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais
    > have vulnerabilities,and not the whole thing?
    >
    > Thank you
    >
    >
    > G.K.
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    --
    Louis LeBlanc FreeBSD-at-keyslapper-DOT-net
    Fully Funded Hobbyist, KeySlapper Extrordinaire :)
    Please send off-list email to: leblanc at keyslapper d.t net
    Key fingerprint = C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2

    Too much is just enough.
    -- Mark Twain, on whiskey

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCIL0cr4Wi/oDI2aIRArazAKCQcm8SRpQzAEtY6I4yXuPyUndEqQCgiP5t
    2jD9M6nd+Y9zB6jLsAbMcZc=
    =mWHN
    -----END PGP SIGNATURE-----

    Louis LeBlanc Guest

  5. #5

    Default Re: Portupgrading - portauditing

    I believe if you do a portuprade -arR you will also upgrade any dependant ports.


    On Sat, 26 Feb 2005 15:28:31 +0000, Chris Hodgins
    <chodgins@cis.strath.ac.uk> wrote:
    > George Katsanos wrote:
    > >
    > > Hello,
    > >
    > > Your team is ALWAYS very helpful . It's the best support i've ever dealt with.
    > >
    > > Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais
    > > have vulnerabilities,and not the whole thing?
    > >
    > > Thank you
    > >
    > >
    > > G.K.
    > > _______________________________________________
    > > [email]freebsd-questions@freebsd.org[/email] mailing list
    > > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    > >
    >
    > Are you after a way to do this automatically or just a way to do it
    > generally?
    >
    > You basically want to run portaudit -a and portupgrade each "Affected
    > Package". You could probably script this quite easily:
    >
    > for i in `portaudit -a | grep "Affected package:" | awk '{print $3}'`
    > do
    > portupgrade $FLAGS $i
    > done
    >
    > Hope this is what you were after. :)
    > Chris
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    Nick Pavlica Guest

  6. #6

    Default Re: Portupgrading - portauditing

    > I finally gave up and deleted the db at
    > /var/db/portaudit/auditfile.tbz and then did the upgrade.
    >
    > It still flags firefox as a vulnerability, even though the problem it
    > references is supposed to be explicitly fixed in the version I have
    > installed (window injection vulnerability).
    >
    > Of course, you can the method described by another poster to get that
    > list, but I haven't been able to get portaudit to actually let me
    > upgrade. Even the portupgrade -f flag won't work and simply building
    > the port manually is also disabled for flagged ports.
    >
    > Portaudit seems more a hard lockdown than a warning system. I think
    > either I am not understanding how to manage it yet, or it has a couple
    > issues that have not been hammered out yet. Manpages don't have much
    > detail about this issue. I haven't had a chance to check on the
    > existence of a bug report yet, because I want to hunt down all the
    > docs I can first.
    no need to fiddle with portaudit, as these can be fed directly to make
    or to portupgrade (with the -m flag).

    building ports despite vulnerabilities:
    -DDISABLE_VULNERABILITIES

    building ports despite ignore:
    -DNO_IGNORE

    to my knowledge, these are not yet documented anywhere but here in the
    mailing lists. i believe that the doc project is already looking to
    integrate this info into the ports manpage (or somewhere else equally
    sensible).

    on the off chance that they lost sight of this target, i'm adding them
    to cc. (: thank you docs team :)

    hth.


    cheers,
    epi
    epilogue Guest

  7. #7

    Default Re: Portupgrading - portauditing

    On 02/26/05 03:25 PM, epilogue sat at the `puter and typed:
    >
    > > I finally gave up and deleted the db at
    > > /var/db/portaudit/auditfile.tbz and then did the upgrade.
    > >
    > > It still flags firefox as a vulnerability, even though the problem it
    > > references is supposed to be explicitly fixed in the version I have
    > > installed (window injection vulnerability).
    > >
    > > Of course, you can the method described by another poster to get that
    > > list, but I haven't been able to get portaudit to actually let me
    > > upgrade. Even the portupgrade -f flag won't work and simply building
    > > the port manually is also disabled for flagged ports.
    > >
    > > Portaudit seems more a hard lockdown than a warning system. I think
    > > either I am not understanding how to manage it yet, or it has a couple
    > > issues that have not been hammered out yet. Manpages don't have much
    > > detail about this issue. I haven't had a chance to check on the
    > > existence of a bug report yet, because I want to hunt down all the
    > > docs I can first.
    >
    > no need to fiddle with portaudit, as these can be fed directly to make
    > or to portupgrade (with the -m flag).
    >
    > building ports despite vulnerabilities:
    > -DDISABLE_VULNERABILITIES
    >
    > building ports despite ignore:
    > -DNO_IGNORE
    >
    > to my knowledge, these are not yet documented anywhere but here in the
    > mailing lists. i believe that the doc project is already looking to
    > integrate this info into the ports manpage (or somewhere else equally
    > sensible).
    >
    > on the off chance that they lost sight of this target, i'm adding them
    > to cc. (: thank you docs team :)
    >
    > hth.

    Definitely. Thanks for the primer.

    Lou
    --
    Louis LeBlanc FreeBSD-at-keyslapper-DOT-net
    Fully Funded Hobbyist, KeySlapper Extrordinaire :)
    Please send off-list email to: leblanc at keyslapper d.t net
    Key fingerprint = C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2

    Too much is just enough.
    -- Mark Twain, on whiskey

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCIRz1r4Wi/oDI2aIRAuWyAJ9SCJq9tfq6yOk8gLwxXEwyPnqCrwCfSH2k
    cfJRAjtXkQL0zhpTnfda4x0=
    =d+rO
    -----END PGP SIGNATURE-----

    Louis LeBlanc Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139