From 550becb64f4f96ee0c51b1715a2a439f3b819692 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 6 Jul 2019 15:36:37 -0500 Subject: [PATCH] computer/security: colored light icons for CPU vulnerabilities Image Source: https://www.flaticon.com/free-icon/traffic-light_196787 Image license: https://file000.flaticon.com/downloads/license/license.pdf Attribution required, may alter and create derivative works. Signed-off-by: Burt P --- modules/computer.c | 9 ++++++++- pixmaps/light_green.png | Bin 0 -> 3723 bytes pixmaps/light_red.png | Bin 0 -> 3594 bytes pixmaps/light_yellow.png | Bin 0 -> 3668 bytes shell/callbacks.c | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 pixmaps/light_green.png create mode 100644 pixmaps/light_red.png create mode 100644 pixmaps/light_yellow.png diff --git a/modules/computer.c b/modules/computer.c index 5db291b23..b5c4401e0 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -621,7 +621,14 @@ gchar *callback_security(void) struct InfoField field = info_field(vuln, idle_free(contents)); if (g_strstr_len(contents, -1, "Vulnerable") || g_strstr_len(contents, -1, "vulnerable")) - field = info_field_with_icon(field, "dialog-warning.png"); + field = info_field_with_icon(field, "light_red.png"); + + if (g_str_has_prefix(contents, "Mitigation:") || + g_str_has_prefix(contents, "mitigation:")) + field = info_field_with_icon(field, "light_yellow.png"); + + if (g_strstr_len(contents, -1, "Not affected") ) + field = info_field_with_icon(field, "light_green.png"); info_group_add_fields(vulns, field, info_field_last()); } diff --git a/pixmaps/light_green.png b/pixmaps/light_green.png new file mode 100644 index 0000000000000000000000000000000000000000..69fe30e92c8f62c26e57936de0aafc0e62679721 GIT binary patch literal 3723 zcmV;64s`K}P)_&M`ghtH_0du19$<^XnzxF;pH8OFcXGZ@44$ z0Z3T?gO}u_uVhdqK+qDIP=bm55OEO+c|Wqv0MoZ0VmR0 zUQv+;u=dWqYqm}J0Mwy>eDgUFeH!Ed zNQ8g4R&L!pxb<5I>I2}w@*SHl6g8g%R7=j>hgN_JEP{oCy z8d<8^$X0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Ogw3z`bJiu03nF{g5Ulw1Cy)Bbiq@cph*Wun{<(=JY?J`mc(4pifTO?q0gp@u-tDX;|LWRMdOU5v6A=mIi8FAkGH6(}GaLgf(X pD=06EkprrFz}jG+Ys6?X{|k|FO!!eLEcpNc002ovPDHLkV1lidAt(R< literal 0 HcmV?d00001 diff --git a/pixmaps/light_red.png b/pixmaps/light_red.png new file mode 100644 index 0000000000000000000000000000000000000000..b4aeb92d6335a95f9059dd26506fcad4d3e54c3f GIT binary patch literal 3594 zcmV+l4)yVgP)Yk&3cW!vxXLfle&l>P19Nggh|-c;GJ26aikIws{T+~scPwuL==c9 zp&O7IXdsb-TD7IAloYjboKV1cXKW{6l~}|9BDI7@EfCWL+1}Y*u=n@Q?7OGT)kvdi zYu=mPnYS~u_aoi){8YpBk*CKK^unQ1cpQ8c~ZOrAK5l}CHvt{p@%pMWB5BMPM$q%i_ z{k=m&PgjND1wbL2%>oYq+gKUAq^kG!=JN+vv;amjnM>4|M^N2GgAfr&B#`nFaSOL9 zzXPfYm8F%X^YdV>`@K21G0$-k8yLRxxefwtGUI4@W{nv{ze+Rs;UIuroV)Qt0 zf+!ZT^Yhr**?M`2*A4vs#$4`MVnkvs;H+Lf2;2#nr6|^%a}J4jSJ~)@u*^8m5X{cH z#nQx}3XcWJ(A&Q2$QRzgc9=4WP{S6C!7sQy7ZpZ{753c!_b6C;z8 z4+Ed3cASe(u36*adJE%D6HW;4uEn76NcyU)?vlYl+bRNZwfm8YiGM=mSvh4~l@jiN3T-DtjJuHfRv>U!ruDQe>0t(sem!lSWB$04CUy?~Y(Jq^cr%y*t z4h8c2xDTs5`%7 zflKp5{=ZwlK594+qx#jcojWgVqyXHNu82GibP|G8V*cW5`5rOGC592%U=xXbx@}tr zH6S&{{YQa6A`B5{{JPxWd0d^KhFisl(z)DciHNDClLxpx;!&@T#`m}~d35d?$!4!3 zA|`4NpBVGE5j=(~^3?sP=ktMDj?ZG@Z(Jy-mjKEQoWT1dT;(>V$m6N$dR*YL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d>ZyA>` Q^8f$<07*qoM6N<$f=F4_d;kCd literal 0 HcmV?d00001 diff --git a/pixmaps/light_yellow.png b/pixmaps/light_yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..b3db45e00404a80ea9e07a4a2ec23b7c07d0b663 GIT binary patch literal 3668 zcmV-a4y*BrP)G_*GVgQGQ+ehOEP?0F z%bmM3v*#nN<}d%_^E+prd(Ly`2yI3c8Q(X!#)w|6${H0}Ey`sGy(lZ7_}2*}fF4Sc zKn}0)FQ9egA0F5tV!jBvf%f!cD}1?s z>*${Ig5Ux$zJKseEDr%2Ss0Ee=E44<*PdO_0hlTNWuf-g%)pB1z#cWqd6bV7a;sl95+V(Xyw+C z=ZTO+x`C5iybHJwFw{+uju_JEA@LY^hA633$QICCq4cRr2vp&5UlX6bRa>iDE1G82AkNo{^P3pIM73l z#0b)zK)T{!3{A~iY$^}w9BP$1q(T0;Z)oI+mJERI{-`(6{l=rfXX+aGo{rMMi_l6` z6|#BkT&}KqL6OJ$j*Q$dyRbBXG-~gDqTBonu(Q^JP8M|_opIWM&E#P=Q_qUnQ8g}jPG8zh#vDDl-sG6fa&Q#dJ=%pRupV1i>7i=QxN2kXHq*>Y&||hh$Q4< zuU|ab5Bw_CDOL1Kx)39@HLKXU44TeUgI8@_wywHkWSo!~LUQWBhSlQ9OH~iPF_>jN zm}T9F5!#*+%#tq5^6pv++Knb}Upn`H-Bc^Usr}dXdVb+WgsZ56Bx0DQonQL|{7jA5Y?BgK`^EbauM8drdM_MPu- zSVo;Bglc~nxQ$AA25)IM#0~FqH1A{2rm8Fu<e z`whM$aS!jJMa9p`>CMZu>)Yq{Tp|y^#C3y@0UxDOaf4ajQ*O`R@uXA?Cp;>p%8tpN zHy(~O02BKL@2+NtPZDvw<%=q*@*N|^Cj{w;R}+H!PVXDsP7O>g2Ro`fPKBg1j#=IX zLd6`xEbFRfCsd5`jj5*xE~QGQ+9O@@ z$;FQVgH$4J>K%MXC`}*{DxvUe6Q^?zQ3X>?C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