Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracefs: Set the group ownership in apply_options() not parse_options()
Al Viro brought it to my attention that the dentries may not be filled when the parse_options() is called, causing the call to set_gid() to possibly crash. It should only be called if parse_options() succeeds totally anyway. He suggested the logical place to do the update is in apply_options(). Link: https://lore.kernel.org/all/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Acked-by: Al Viro <[email protected]> Reported-by: Al Viro <[email protected]> Fixes: 48b27b6 ("tracefs: Set all files to the same group ownership as the mount option") Signed-off-by: Steven Rostedt (Google) <[email protected]>
- Loading branch information