Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[fsstorageplugin] Implement symlink policy. JB#44457
If buteo-mtp bumps upon symlinks, they are followed indiscriminately - which allows escaping from storage directory boundaries and/or blacklist configuration. While the current behavior can be considered as a feature, sometimes it might be desirable to limit whether and what kind of symlinks are followed. Implement symbolic link policy, controlled by environment variable BUTEO_MTP_SYMLINK_POLICY, which can have one of the following values: - AllowAll - symbolic links are always followed - DenyAll - all symbolic links are ignored - AllowWithinStorage - symbolic links that stay within the storage are followed By default "AllowAll" is selected, i.e. buteo-mtp behaves like before. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters