mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
3DFileViewer: Use unveil and FileSystemAccessServer
This will restrict 3DFileViewer's access to the file system. 3DFileViewer loads a texture based on the path of the model loaded, this will request access to the texture file before loading.
This commit is contained in:
parent
b953588e0e
commit
1c78ff1b9f
2 changed files with 81 additions and 23 deletions
|
@ -2,6 +2,7 @@ serenity_component(
|
|||
3DFileViewer
|
||||
RECOMMENDED
|
||||
TARGETS 3DFileViewer
|
||||
DEPENDS FileSystemAccessServer
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
|
@ -11,4 +12,4 @@ set(SOURCES
|
|||
)
|
||||
|
||||
serenity_app(3DFileViewer ICON app-3d-file-viewer)
|
||||
target_link_libraries(3DFileViewer LibGUI LibGL)
|
||||
target_link_libraries(3DFileViewer LibGUI LibGL LibFileSystemAccessClient)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue