{"id":42,"date":"2024-04-12T05:18:00","date_gmt":"2024-04-12T12:18:00","guid":{"rendered":"https:\/\/canutethegreat.blog\/?p=42"},"modified":"2024-11-24T12:09:37","modified_gmt":"2024-11-24T20:09:37","slug":"gentoo-glsa-check","status":"publish","type":"post","link":"https:\/\/blog.canutethegreat.com\/index.php\/2024\/04\/12\/gentoo-glsa-check\/","title":{"rendered":"Gentoo glsa-check"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Quick Primer on using Gentoo&#8217;s glsa-check tool.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> glsa-check --help\nusage: glsa-check &lt;option> &#91;glsa-id | all | new | affected]\n\noptions:\n  -h, --help        show this help message and exit\n  -V, --version     Show information about glsa-check\n  -q, --quiet       Be less verbose and do not send empty mail\n  -v, --verbose     Print more messages\n  -n, --nocolor     Removes color from output\n  -e, --emergelike  Upgrade to latest version (not least-change)\n  -c, --cve         Show CVE IDs in listing mode\n  -r, --reverse     List GLSAs in reverse order\n\nModes:\n  -l, --list        List a summary for the given GLSA(s) or set and whether they affect the system\n  -d, --dump        Show all information about the GLSA(s) or set\n  --print           Alias for --dump\n  -t, --test        Test if this system is affected by the GLSA(s) or set and output the GLSA ID(s)\n  -p, --pretend     Show the necessary steps to remediate the system\n  -f, --fix         (experimental) Attempt to remediate the system based on the instructions given in the GLSA(s) or\n                    set. This will only upgrade (when an upgrade path exists) or remove packages\n  -i, --inject      Inject the given GLSA(s) into the glsa_injected file\n  -m, --mail        Send a mail with the given GLSAs to the administrator\n\nglsa-list can contain an arbitrary number of GLSA ids, filenames containing GLSAs or the special identifiers 'all'\nand 'affected'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check for vulnerable packages with &#8216;-p&#8217; (pretend) flag:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> glsa-check -p all\nChecking GLSA 200409-10\n>>> no vulnerable packages installed\n\n\nChecking GLSA 200411-08\n>>> no vulnerable packages installed\n...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check AND fix vulnerable packages with &#8216;-f&#8217; (fix) flag:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>glsa-check -f all\nFixing GLSA 200409-10\n>>> no vulnerable packages installed\n\nFixing GLSA 200411-08\n>>> no vulnerable packages installed\n...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And that&#8217;s a wrap!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick Primer on using Gentoo&#8217;s glsa-check tool. Check for vulnerable packages with &#8216;-p&#8217; (pretend) flag: Check AND fix vulnerable packages with &#8216;-f&#8217; (fix) flag: And that&#8217;s a wrap!<\/p>\n","protected":false},"author":1,"featured_media":123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":1,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions\/43"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/media\/123"}],"wp:attachment":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}