public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. b7b65e736e42be7e7988c4c3efe67ca0f2a05057
Date: Mon, 05 Oct 2020 15:08:33 +0000	[thread overview]
Message-ID: <4C4kWQ0HKZz2xbb@people01.haj.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2200 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  b7b65e736e42be7e7988c4c3efe67ca0f2a05057 (commit)
      from  22a6277fc93605d070f042c84f46580bf02af62a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b7b65e736e42be7e7988c4c3efe67ca0f2a05057
Author: Peter Müller <peter.mueller(a)ipfire.org>
Date:   Mon Oct 5 14:12:18 2020 +0000

    sysctl.conf: prevent unintentional writes into attacker-controlled files and FIFOs
    
    Similar to hard- and symlink protection introduced a while ago, this
    patch enables protections against unintentional writes into
    attacker-controlled regular files or FIFOs, where a program expected to
    create new ones. This makes exploiting TOCTOU flaws harder.
    
    See also: https://www.kernel.org/doc/Documentation/sysctl/fs.txt
    
    Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/etc/sysctl.conf | 5 +++++
 1 file changed, 5 insertions(+)

Difference in files:
diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf
index d48c7734e..be7c07c85 100644
--- a/config/etc/sysctl.conf
+++ b/config/etc/sysctl.conf
@@ -49,6 +49,11 @@ kernel.dmesg_restrict = 1
 fs.protected_symlinks = 1
 fs.protected_hardlinks = 1
 
+# Don't allow writes to files and FIFOs that we don't own in world writable sticky
+# directories, unless they are owned by the owner of the directory.
+fs.protected_fifos = 2
+fs.protected_regular = 2
+
 # Minimal preemption granularity for CPU-bound tasks:
 # (default: 1 msec#  (1 + ilog(ncpus)), units: nanoseconds)
 kernel.sched_min_granularity_ns = 10000000


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2020-10-05 15:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4C4kWQ0HKZz2xbb@people01.haj.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox