summaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2024-10-28 09:32:38 -0500
committerChristian Brauner <brauner@kernel.org>2024-11-15 11:50:13 +0100
commit56bd06c2640b78cef985159e03f42bf3897013ff (patch)
tree8037acc83a0414012c7f76a4f5e44799ec316940 /rust/helpers/task.c
parentb4201b51d93eac77f772298a96bfedbdb0c7150c (diff)
downloadlinux-56bd06c2640b78cef985159e03f42bf3897013ff.tar.gz
linux-56bd06c2640b78cef985159e03f42bf3897013ff.tar.bz2
linux-56bd06c2640b78cef985159e03f42bf3897013ff.zip
ecryptfs: Factor out mount option validation
Under the new mount API, mount options are parsed one at a time. Any validation that examines multiple options must be done after parsing is complete, so factor out a ecryptfs_validate_options() which can be called separately. To facilitate this, temporarily move the local variables that tracked whether various options have been set in the parsing function, into the ecryptfs_mount_crypt_stat structure so that they can be examined later. These will be moved to a more ephemeral struct in the mount api conversion patch to follow. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Link: https://lore.kernel.org/r/20241028143359.605061-2-sandeen@redhat.com Acked-by: Tyler Hicks <code@tyhicks.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions