lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180409143415.sqjzaxextrp2x226@rh_laptop>
Date:   Mon, 9 Apr 2018 16:34:15 +0200
From:   Lukas Czerner <lczerner@...hat.com>
To:     Eric Sandeen <sandeen@...hat.com>
Cc:     "linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH] e2fsck: warn if checkinterval and broken_system_clock
 both set

On Fri, Mar 30, 2018 at 10:31:37AM -0500, Eric Sandeen wrote:
> If broken_system_clock is set in e2fsck.conf and this causes
> the check interval to be ignored, make that clear to the user:

Looks good.

Reviewed-by: Lukas Czerner <lczerner@...hat.com>

> 
> # e2fsck /dev/sda1 
> e2fsck 1.44.1 (24-Mar-2018)
> /dev/sda1: ignoring check interval, broken_system_clock set
> /dev/sda1: clean, 11/65536 files, 12955/262144 blocks
> 
> Signed-off-by: Eric Sandeen <sandeen@...hat.com>
> ---
> 
> (I wasn't sure, maybe this test should go outside all the reason-
> setting, since this is a not-checking case?  But in the end it seemed
> to make most sense along with all the other tests for these states.)
> 
> diff --git a/e2fsck/unix.c b/e2fsck/unix.c
> index faf5af9..3a76be1 100644
> --- a/e2fsck/unix.c
> +++ b/e2fsck/unix.c
> @@ -396,7 +396,12 @@ static void check_if_skip(e2fsck_t ctx)
>  		if (batt && ((ctx->now - fs->super->s_lastcheck) <
>  			     fs->super->s_checkinterval*2))
>  			reason = 0;
> +	} else if (broken_system_clock && fs->super->s_checkinterval) {
> +		log_out(ctx, "%s: ", ctx->device_name);
> +		log_out(ctx, "%s",
> +			_("ignoring check interval, broken_system_clock set\n"));
>  	}
> +
>  	if (reason) {
>  		log_out(ctx, "%s", ctx->device_name);
>  		log_out(ctx, reason, reason_arg);
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ