From: "Alexander Ivanov" <amivanov@fastmail.com>
To: linux-security-module@vger.kernel.org
Subject: protecting overlayfs's lower consistently.
Date: Fri, 28 Feb 2020 10:31:04 -0800 [thread overview]
Message-ID: <91958250-142b-4ceb-877c-3dd9036c7a9c@www.fastmail.com> (raw)
We have LSM that implements file_open call back to protect fs object based on path. Now, supposed are to protect /mnt/l in the following setup
mount -t overlay -orw,lowerdir=/mnt/l,upperdir=/mnt/u,workdir=/mnt/w none /mnt/m
However, when one attempts to change the upper (for the objects that originates on lower) the dentry passed into vfs_open() and then to do_dentry_open() points to the lower and there seems no easy way to calculate its upper. It
This seems was different in older kernels, eg. 3.10 (rhel7). The changes the seemingly broke that behaviour happened around kernel 4.4. What was a reason for that change and is there anyway to figure out the upper given the lower passed into vfs_open()?
Thanks,
--Alex
reply other threads:[~2020-02-28 18:31 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=91958250-142b-4ceb-877c-3dd9036c7a9c@www.fastmail.com \
--to=amivanov@fastmail.com \
--cc=linux-security-module@vger.kernel.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