All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sarah Newman <srn@prgmr.com>
To: Karel Zak <kzak@redhat.com>
Cc: "Wayne R. Roth" <wayneroth42@gmail.com>,
	util-linux <util-linux@vger.kernel.org>
Subject: Re: [PATCH] mkswap: Add warnings for insecure device permissions/owners
Date: Mon, 25 Jan 2016 13:39:27 -0800	[thread overview]
Message-ID: <56A6960F.4070404@prgmr.com> (raw)
In-Reply-To: <20160123162241.pwvqxyfm4qv2apgo@ws.net.home>

On 01/23/2016 08:22 AM, Karel Zak wrote:
> On Fri, Jan 22, 2016 at 10:03:47PM +0000, Sami Kerola wrote:
>> Alternatively one could make swapon to get rid of all permission bits
>> and set ownership to UID 0 by default when ever it activates a
>> swapfile. How about that.
> 
> Not sure if want to change any permissions on the fly, it would be
> better to reject files (by swapon) with insecure permissions and
> require something like --force for crazy users who wants to ignore
> this problem.

Rejecting insecure permissions in swapon will make warnings in mkswap even more important. Are there any further changes required to Wayne's latest
patch to mkswap.c https://marc.info/?l=util-linux-ng&m=145327019508709&w=2 before it is merged?

Thanks, Sarah


      parent reply	other threads:[~2016-01-25 21:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19 18:37 [PATCH] mkswap: Add warnings for insecure device permissions/owners Wayne R. Roth
2016-01-19 19:44 ` Mike Frysinger
2016-01-20  4:17   ` [PATCH] mkswap: Add warnings for insecure device permissions/owners Logic modified from sys-utils/swapon.c Wayne R. Roth
2016-01-20  4:58     ` Mike Frysinger
2016-01-20  6:09       ` [PATCH] mkswap: add " Wayne R. Roth
2016-01-26 10:35         ` Karel Zak
2016-01-20  9:39   ` [PATCH] mkswap: Add warnings for insecure device permissions/owners Sami Kerola
2016-01-20 10:30 ` Karel Zak
2016-01-21 22:19   ` Sarah Newman
2016-01-22 16:01     ` Tilman Schmidt
2016-01-22 19:14       ` Sarah Newman
2016-01-22 22:03         ` Sami Kerola
2016-01-23 16:22           ` Karel Zak
2016-01-24 11:09             ` Sami Kerola
2016-01-25 19:55               ` Sami Kerola
2016-01-26 10:42               ` Karel Zak
2016-01-26 16:28                 ` Sarah Newman
2016-01-25 21:39             ` Sarah Newman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A6960F.4070404@prgmr.com \
    --to=srn@prgmr.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    --cc=wayneroth42@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.