Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Dec 16, 2014
1 parent ddab450 commit 2b76871
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/sudoers.d/sdwdate
Expand Up @@ -6,4 +6,5 @@ sdwdate ALL=NOPASSWD: /bin/date *
sdwdate ALL=NOPASSWD: /usr/lib/sdwdate/sclockadj *
sdwdate ALL=NOPASSWD: /sbin/hwclock *
sdwdate ALL=NOPASSWD: /usr/lib/sdwdate/sclockadj_kill_helper *
sdwdate ALL=NOPASSWD: /usr/lib/sdwdate/sclockadj_debug_helper *
Defaults:sdwdate env_keep += "INLINEDIR"
3 changes: 3 additions & 0 deletions usr/lib/sdwdate/modules.d/sdwdate
Expand Up @@ -1561,6 +1561,9 @@ sdwdate_set_time_using_sclockadj() {

trap "sdwdate_subshell_trap_sigterm" SIGTERM

## There is a /etc/sudoers.d exception.
sudo /usr/lib/sdwdate/sclockadj_debug_helper || true

sdwdate_subshell_time_start

$SDWDATE_SCLOCKADJ_COMMAND 2>&1 &
Expand Down
10 changes: 10 additions & 0 deletions usr/lib/sdwdate/sclockadj_debug_helper
@@ -0,0 +1,10 @@
#!/bin/bash

## This file is part of Whonix.
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

set -x

find /var/cache/sdwdate -printf "%p %u %g %m\n"
true "\$?: $?"

0 comments on commit 2b76871

Please sign in to comment.