Luna/gui/apps
apio ac260d0397
All checks were successful
Build and test / build (push) Successful in 1m42s
wind+libui: Add "pledge" functionality to access special features for system programs
This segments privileges more, making it so that any app connecting to wsys.sock can't just always access every single advanced feature in wind if they don't need to.
Of course, apps have to restrict themselves, which is why only privileged apps have access to this feature in the first place.
Normal apps' pledges are all empty and can't be changed.

An example: taskbar uses the "ExtendedLayers" pledge to move its window to the background, but relinquishes it afterwards, and doesn't need any other advanced feature for now.

If a pledge-capable app tries to use a pledge-protected function without having pledged anything, it can't. Pledges are mandatory if you want to access certain functionality, unlike the kernel's pledges which make every syscall available if you don't use pledge().
2024-12-13 23:47:53 +01:00
..
editor editor: Avoid showing an error dialog when pressing Ctrl+S 2024-10-26 14:00:57 +02:00
terminal all: Reorder directory structure 2024-07-21 13:24:46 +02:00
2048.cpp loginui+2048: Replace String with RefString 2024-10-26 13:43:20 +02:00
about.cpp all: Reorder directory structure 2024-07-21 13:24:46 +02:00
clock.cpp all: Reorder directory structure 2024-07-21 13:24:46 +02:00
CMakeLists.txt all: Reorder directory structure 2024-07-21 13:24:46 +02:00
gol.cpp all: Reorder directory structure 2024-07-21 13:24:46 +02:00
taskbar.cpp wind+libui: Add "pledge" functionality to access special features for system programs 2024-12-13 23:47:53 +01:00