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]
Date:   Fri, 14 Oct 2016 15:55:15 +0100
From:   Al Viro <viro@...IV.linux.org.uk>
To:     Mattias Nissler <mnissler@...omium.org>
Cc:     linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC] [PATCH] Add a "nolinks" mount option.

On Fri, Oct 14, 2016 at 04:28:25PM +0200, Mattias Nissler wrote:
> For mounts that have the new "nolinks" option, don't follow symlinks
> and reject to open files with a hard link count larger than one. The
> new option is similar in spirit to the existing "nodev", "noexec", and
> "nosuid" options.
> 
> Note that symlinks and hard links may still be created on mounts where
> the "nolinks" option is present. readlink() remains functional, so
> user space code that is aware of symlinks can still choose to follow
> them explicitly. Similarly, hard-linked files can be identified from
> userspace using stat() output while the "nolinks" option is set.
> 
> Setting the "nolinks" mount option helps prevent privileged writers
> from modifying files unintentionally in case there is an unexpected
> link along the accessed path. The "nolinks" option is thus useful as a
> defensive measure against persistent exploits (i.e. a system getting
> re-exploited after a reboot) for systems that employ a read-only or
> dm-verity-protected rootfs. These systems prevent non-legit binaries
> from running after reboot. However, legit code typically still reads
> from and writes to a writable file system previously under full
> control of the attacker, who can place symlinks to trick file writes
> after reboot to target a file of their choice. "nolinks" fundamentally
> prevents this.

Which parts of the tree would be on that "protected" rootfs and which would
you mount with that option?  Description above is rather vague and I'm
not convinced that it actually buys you anything.  Details, please...

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ