summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2024-06-27 19:26:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 16:33:46 +0200
commitdf881ff321171dc94ec1e544f8d2c41f7d27549d (patch)
tree0e61525fd66f3faa940fb25b20f380c3d8997cd3 /security/security.c
parentb249b7b1b13435218b76ccdd02479008acc3d35b (diff)
fs_parse: add uid & gid option option parsing helpers
[ Upstream commit 9f111059e725f7ca79a136bfc734da3c8c1838b4 ] Multiple filesystems take uid and gid as options, and the code to create the ID from an integer and validate it is standard boilerplate that can be moved into common helper functions, so do that for consistency and less cut&paste. This also helps avoid the buggy pattern noted by Seth Jenkins at https://lore.kernel.org/lkml/CALxfFW4BXhEwxR0Q5LSkg-8Vb4r2MONKCcUCVioehXQKr35eHg@mail.gmail.com/ because uid/gid parsing will fail before any assignment in most filesystems. Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Link: https://lore.kernel.org/r/de859d0a-feb9-473d-a5e2-c195a3d47abb@redhat.com Signed-off-by: Christian Brauner <brauner@kernel.org> Stable-dep-of: 3a987b88a425 ("debugfs show actual source in /proc/mounts") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions