From: "Rahul Sandhu" <nvraxn@gmail.com>
To: <nvraxn@gmail.com>
Cc: <selinux@vger.kernel.org>
Subject: Re: [PATCH v2] seunshare: fix the frail tmpdir cleanup
Date: Thu, 31 Jul 2025 20:33:10 +0100 [thread overview]
Message-ID: <DBQHP9O2QZP7.15GAYG3PERBJ8@gmail.com> (raw)
In-Reply-To: <20250731191859.1091884-1-nvraxn@gmail.com>
Actually thinking about it... symlinks are probably a concern? As an
example, take a symlink to /root in the temp dir - as we're following
symlinks, /root would be deleted. However, I don't really think it
even makes sense to follow symlinks here, afterall we want to delete
only what's actually in the tmpdir. I'll send a v3 in a bit that uses
AT_SYMLINK_NOFOLLOW which should resolve this, unless anyone else has
any other ideas?
Best Regards,
Rahul
next prev parent reply other threads:[~2025-07-31 19:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 19:12 [PATCH] seunshare: fix the frail tmpdir cleanup Rahul Sandhu
2025-07-31 19:18 ` [PATCH v2] " Rahul Sandhu
2025-07-31 19:33 ` Rahul Sandhu [this message]
2025-07-31 21:18 ` [PATCH v3] " Rahul Sandhu
2025-08-01 18:12 ` Stephen Smalley
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=DBQHP9O2QZP7.15GAYG3PERBJ8@gmail.com \
--to=nvraxn@gmail.com \
--cc=selinux@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 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.