summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-cmos.c
diff options
context:
space:
mode:
authorSami Kerola2016-07-27 20:47:38 +0200
committerSami Kerola2017-02-05 00:39:38 +0100
commit9c65888e823a1d54b7198f6e75919e7a13867bca (patch)
treeb9d1dca6a309cbd988dac56bf4327419cc1cb7c4 /sys-utils/hwclock-cmos.c
parenthwclock: fix rtc atexit registration (diff)
downloadkernel-qcow2-util-linux-9c65888e823a1d54b7198f6e75919e7a13867bca.tar.gz
kernel-qcow2-util-linux-9c65888e823a1d54b7198f6e75919e7a13867bca.tar.xz
kernel-qcow2-util-linux-9c65888e823a1d54b7198f6e75919e7a13867bca.zip
hwclock: make --date=argument less prone to injection
This change should not improve security much. One hopes hwclock --set is restricted for root only. Where hwclock is allowed to run via sudo, or has setuid setup, there is a pretty easy privilege escalation via subshell. $ sudo ./hwclock --set --date='2000-10-20$(touch /tmp/hwclock.inject)' Reviewed-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
0 files changed, 0 insertions, 0 deletions